mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 02:32:58 -03:00
Use a NamedTemporaryFile instead of TemporaryFile for streamed gzip files
This commit is contained in:
parent
f5b60de2e6
commit
b659eccfbf
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ class SendBaseModeWeb:
|
||||||
if use_gzip:
|
if use_gzip:
|
||||||
if filesystem_path not in self.gzip_individual_files:
|
if filesystem_path not in self.gzip_individual_files:
|
||||||
self.gzip_files.append(
|
self.gzip_files.append(
|
||||||
tempfile.TemporaryFile("wb+", dir=self.common.build_tmp_dir())
|
tempfile.NamedTemporaryFile("wb+", dir=self.common.build_tmp_dir())
|
||||||
)
|
)
|
||||||
gzip_file = self.gzip_files[-1]
|
gzip_file = self.gzip_files[-1]
|
||||||
self._gzip_compress(filesystem_path, gzip_file.name, 6, None)
|
self._gzip_compress(filesystem_path, gzip_file.name, 6, None)
|
||||||
|
|
Loading…
Add table
Reference in a new issue