mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 15:36:16 -04:00
fix minify route path; update deprecated calls
This commit is contained in:
parent
4385598de6
commit
de67714cf8
3 changed files with 4 additions and 4 deletions
|
@ -57,10 +57,10 @@ exports.basicAuth = function (req, res, next) {
|
|||
res.header('WWW-Authenticate', 'Basic realm="Protected Area"');
|
||||
if (req.headers.authorization) {
|
||||
setTimeout(function () {
|
||||
res.send(401, 'Authentication required');
|
||||
res.status(401).send('Authentication required');
|
||||
}, 1000);
|
||||
} else {
|
||||
res.send(401, 'Authentication required');
|
||||
res.status(401).send('Authentication required');
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue