diff --git a/examples/web_stream.js b/examples/web_stream.js index 30e0162..a27df91 100644 --- a/examples/web_stream.js +++ b/examples/web_stream.js @@ -20,7 +20,8 @@ var http = require('http'); http.createServer(function(req, res) { res.writeHead(200, { - 'Content-Type': 'application/x-tar' // force header for tar download + 'Content-Type': 'application/x-tar', // force header for tar download + 'Content-disposition': 'attachment; filename='+Date.now()+'-mongodump.tar' //set the name of downloaded dump :) }); backup({