mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-10 10:25:03 -04:00
If only sharing one file, compress it with gzip, and serve it with gzip compression if the browser supports it
This commit is contained in:
parent
5003d44cfb
commit
e941ce0fd7
3 changed files with 58 additions and 10 deletions
|
@ -47,8 +47,7 @@ class CompressThread(QtCore.QThread):
|
|||
# Cancelled
|
||||
pass
|
||||
|
||||
if self.mode.web.share_mode.is_zipped:
|
||||
self.mode.app.cleanup_filenames.append(self.mode.web.share_mode.download_filename)
|
||||
self.mode.app.cleanup_filenames += self.mode.web.share_mode.cleanup_filenames
|
||||
except OSError as e:
|
||||
self.error.emit(e.strerror)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue