mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-24 06:24:19 -04:00
Set self.cancel_compression to false in the set_file_info() function instead of Web's constructor, so it gets reset every time
This commit is contained in:
parent
c52c846227
commit
0234ff5f37
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,6 @@ class Web(object):
|
||||||
self.zip_filename = None
|
self.zip_filename = None
|
||||||
self.zip_filesize = None
|
self.zip_filesize = None
|
||||||
self.zip_writer = None
|
self.zip_writer = None
|
||||||
self.cancel_compression = False
|
|
||||||
|
|
||||||
self.security_headers = [
|
self.security_headers = [
|
||||||
('Content-Security-Policy', 'default-src \'self\'; style-src \'self\'; script-src \'self\'; img-src \'self\' data:;'),
|
('Content-Security-Policy', 'default-src \'self\'; style-src \'self\'; script-src \'self\'; img-src \'self\' data:;'),
|
||||||
|
@ -518,6 +517,8 @@ class Web(object):
|
||||||
page will need to display. This includes zipping up the file in order to
|
page will need to display. This includes zipping up the file in order to
|
||||||
get the zip file's name and size.
|
get the zip file's name and size.
|
||||||
"""
|
"""
|
||||||
|
self.cancel_compression = False
|
||||||
|
|
||||||
# build file info list
|
# build file info list
|
||||||
self.file_info = {'files': [], 'dirs': []}
|
self.file_info = {'files': [], 'dirs': []}
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue