We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20768db commit 705e881Copy full SHA for 705e881
examples/web_stream.js
@@ -20,7 +20,8 @@ var http = require('http');
20
http.createServer(function(req, res) {
21
22
res.writeHead(200, {
23
- 'Content-Type': 'application/x-tar' // force header for tar download
+ 'Content-Type': 'application/x-tar', // force header for tar download
24
+ 'Content-disposition': 'attachment; filename='+Date.now()+'-mongodump.tar' //set the name of downloaded dump :)
25
});
26
27
backup({
0 commit comments