diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2019-08-01 03:34:21 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2019-08-01 03:34:21 +0300 |
commit | 99d0f8ebd5024a78007dca494f5521751efada67 (patch) | |
tree | d80d41477c2e6191679e27fd1c04c6c344fc5693 /lib | |
parent | aa2c489195c267b8825cec2b69bc93137cdda474 (diff) |
server: use 'application/octet-stream' mimetype as fallback
Instead of a mimetype of "null"
Fixes: https://github.com/brave/brave-browser/issues/5489
Diffstat (limited to 'lib')
-rw-r--r-- | lib/server.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server.js b/lib/server.js index 9088bc8..cea77fa 100644 --- a/lib/server.js +++ b/lib/server.js @@ -167,7 +167,7 @@ function Server (torrent, opts = {}) { function serveFile (file) { res.statusCode = 200 - res.setHeader('Content-Type', mime.getType(file.name)) + res.setHeader('Content-Type', mime.getType(file.name) || 'application/octet-stream') // Support range-requests res.setHeader('Accept-Ranges', 'bytes') |