Skip to content

Commit

Permalink
Do not compress files anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
beavailable committed Aug 29, 2022
1 parent 472ebf9 commit eebcd67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion share.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ def respond_for_archive(self, dir):
self.send_transfer_encoding('chunked')
self.end_headers()
with ChunkWriter(self.wfile) as writer:
with zipfile.ZipFile(writer, 'w', zipfile.ZIP_DEFLATED, compresslevel=3, strict_timestamps=False) as zip:
with zipfile.ZipFile(writer, 'w', zipfile.ZIP_STORED, strict_timestamps=False) as zip:
try:
self._archive(os.path.dirname(dir.rstrip('/')), dir, zip)
except (PermissionError, FileNotFoundError):
Expand Down

0 comments on commit eebcd67

Please sign in to comment.