diff --git a/src/index.js b/src/index.js index 0c7aa1e..91f6d18 100644 --- a/src/index.js +++ b/src/index.js @@ -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);