mirror of
https://github.com/onionshare/onionshare.git
synced 2025-06-19 03:59:13 -04:00
Use a NamedTemporaryFile instead of TemporaryFile for streamed gzip files
This commit is contained in:
parent
9663f78147
commit
c80303df35
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
Add a link
Reference in a new issue