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:
Micah Lee 2018-09-21 12:29:23 -07:00
parent 5003d44cfb
commit e941ce0fd7
3 changed files with 58 additions and 10 deletions

View file

@ -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)