Skip to content

Commit

Permalink
solution
Browse files Browse the repository at this point in the history
  • Loading branch information
oleksii-bieliaiev committed Oct 8, 2023
1 parent 449920c commit 760a6cf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ server.on('request', (req, res) => {

res.setHeader('Content-Type', 'application/octet-stream');

res.setHeader(
'Content-Disposition', `attachment; filename=${file + extension}`
);

pipeline(file, compression, newFile, (error) => {
if (error) {
res.end(error);
Expand Down

0 comments on commit 760a6cf

Please sign in to comment.