summaryrefslogtreecommitdiff
path: root/src/node/hooks/express/webaccess.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/hooks/express/webaccess.js')
-rw-r--r--src/node/hooks/express/webaccess.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/hooks/express/webaccess.js b/src/node/hooks/express/webaccess.js
index a6a270c0..99971206 100644
--- a/src/node/hooks/express/webaccess.js
+++ b/src/node/hooks/express/webaccess.js
@@ -56,10 +56,10 @@ exports.basicAuth = function (req, res, next) {
res.header('WWW-Authenticate', 'Basic realm="Protected Area"');
if (req.headers.authorization) {
setTimeout(function () {
- res.send('Authentication required', 401);
+ res.send(401, 'Authentication required');
}, 1000);
} else {
- res.send('Authentication required', 401);
+ res.send(401, 'Authentication required');
}
}));
}