Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-07-03 07:48:26 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-07-03 07:48:26 +0300
commit8bd60a2c197d27a77aa47f2df39a7444463aea6f (patch)
tree023a455dc12d72ed0e11b9f0d36bd751032e2dec /lib/server.js
parent9400efe10f02b36c6bb10862bacbbc88b932cddb (diff)
http server: send 404 message
Diffstat (limited to 'lib/server.js')
-rw-r--r--lib/server.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/server.js b/lib/server.js
index 6490e70..a9c2542 100644
--- a/lib/server.js
+++ b/lib/server.js
@@ -50,7 +50,7 @@ module.exports = function Server (torrent, opts) {
var index = Number(pathname.slice(1))
if (Number.isNaN(index) || index >= torrent.files.length) {
res.statusCode = 404
- return res.end()
+ return res.end('404 Not Found')
}
var file = torrent.files[index]