mirror of
https://github.com/trufflesecurity/xsshunter
synced 2025-02-16 05:18:36 +00:00
fixing fe bug
This commit is contained in:
parent
ebde216768
commit
747cc1f8c0
1 changed files with 6 additions and 1 deletions
7
app.js
7
app.js
|
@ -220,7 +220,12 @@ async function get_app_server() {
|
|||
const gzip = zlib.createGzip();
|
||||
const gzipTempFileName = multer_temp_image_path + ".gz";
|
||||
const tempFileWriteStream = fs.createWriteStream(gzipTempFileName);
|
||||
await input_read_stream.pipe(gzip).pipe(tempFileWriteStream);
|
||||
input_read_stream.pipe(gzip).pipe(tempFileWriteStream);
|
||||
// Wait for the file to be finished writing
|
||||
await new Promise((resolve, reject) => {
|
||||
tempFileWriteStream.on('finish', resolve);
|
||||
tempFileWriteStream.on('error', reject);
|
||||
});
|
||||
//uploading the gzipped file to GCS
|
||||
await bucket.upload(gzipTempFileName, {
|
||||
gzip: true,
|
||||
|
|
Loading…
Add table
Reference in a new issue