Commit b954857f authored by Julien Muchembled's avatar Julien Muchembled

client: store uncompressed if compressed size is equal

The Importer storage backend already does this.
parent 42ca12eb
...@@ -437,7 +437,7 @@ class Application(ThreadedApplication): ...@@ -437,7 +437,7 @@ class Application(ThreadedApplication):
size = len(data) size = len(data)
if self.compress: if self.compress:
compressed_data = compress(data) compressed_data = compress(data)
if size < len(compressed_data): if size <= len(compressed_data):
compressed_data = data compressed_data = data
compression = 0 compression = 0
else: else:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment