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):
size = len(data)
if self.compress:
compressed_data = compress(data)
if size < len(compressed_data):
if size <= len(compressed_data):
compressed_data = data
compression = 0
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