Guest User

Untitled

a guest
Jul 18th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Content-Type: image/jpeg
  2. Content-Disposition: attachment; filename=genome.jpeg;
  3. modification-date="Wed, 12 Feb 1997 16:29:51 -0500";
  4. Content-Description: a complete map of the human genome
  5.  
  6. app.get('/down2', function(req, res){
  7. var filename = 'data.csv';
  8. res.attachment(filename);
  9. res.end('hello,worldnkeesun,hi', 'UTF-8'); //Actually, the data will be loaded form db.
  10. });
Add Comment
Please, Sign In to add comment