From 0e96112c494abb83e8cd9696a4ca08a09d4fb2ef Mon Sep 17 00:00:00 2001 From: cel Date: Sat, 28 Mar 2020 15:58:05 -0400 Subject: Use 401 only for Basic Auth --- lib/serve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/serve.js b/lib/serve.js index 71426c3..46b78e7 100644 --- a/lib/serve.js +++ b/lib/serve.js @@ -107,7 +107,7 @@ Serve.prototype.go = function () { if (allowAddresses) { var ip = this.req.socket.remoteAddress if (allowAddresses.indexOf(ip) === -1) { - this.res.writeHead(401) + this.res.writeHead(403) return this.res.end('Not authorized') } } -- cgit v1.2.3