mirror of
https://github.com/rustic-rs/rustic.git
synced 2025-10-26 11:18:51 +00:00
Be more clear about compressed repo files
This commit is contained in:
parent
366ce3ad3a
commit
d4e78ecd1c
@ -159,8 +159,8 @@ impl<R: ReadBackend, C: CryptoKey> DecryptReadBackend for DecryptBackend<R, C> {
|
||||
.key
|
||||
.decrypt_data(&self.backend.read_full(tpe, id).await?)?;
|
||||
Ok(match decrypted[0] {
|
||||
0x5b | 0x7b => decrypted,
|
||||
2 => decode_all(&decrypted[1..])?,
|
||||
b'{' | b'[' => decrypted, // not compressed
|
||||
2 => decode_all(&decrypted[1..])?, // 2 indicates compressed data following
|
||||
_ => bail!("not supported"),
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user