diff options
Diffstat (limited to 'service/pixelated/support')
-rw-r--r-- | service/pixelated/support/encrypted_file_storage.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/service/pixelated/support/encrypted_file_storage.py b/service/pixelated/support/encrypted_file_storage.py index 95785baa..b9871ace 100644 --- a/service/pixelated/support/encrypted_file_storage.py +++ b/service/pixelated/support/encrypted_file_storage.py @@ -45,4 +45,5 @@ class EncryptedFileStorage(FileStorage): def _open_encrypted_file(self, name, onclose=lambda x: None): file_content = open(self._fpath(name), "rb").read() decrypted = self.f.decrypt(file_content) + self.length_cache[name] = len(decrypted) return BufferFile(buffer(decrypted), name=name, onclose=onclose) |