Skip to content

Commit

Permalink
Set tar extension correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbanham committed Feb 27, 2013
1 parent 721b5a8 commit e6fd1a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app.js
Expand Up @@ -484,7 +484,7 @@ app.get('/tar', requiresLevel(0), function(req,res) {

res.contentType('tar');
var fileName = path.basename(req.query.path);
res.setHeader('Content-Disposition', 'attachment; filename='+fileName);
res.setHeader('Content-Disposition', 'attachment; filename='+fileName+'.tar');

// Keep writing stdout to res
tar.stdout.pipe(res,{ end: false });
Expand Down

0 comments on commit e6fd1a4

Please sign in to comment.