Answers for "express octet stream"

0

express octet stream

app.get((req, res, next) => {
  res.setHeader('Content-Type', 'application/octet-stream');
  res.sendFile('/file/to/be/downloaded.ext');
  res.status(200);
});
Posted by: Guest on August-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language