Skip to content

Commit

Permalink
Merge pull request #1976 from MatthiasU/master
Browse files Browse the repository at this point in the history
Add quotation marks for basic auth challenge
  • Loading branch information
knolleary committed Nov 13, 2018
2 parents c685a31 + e094ea3 commit 2f93bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion red.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ function basicAuthMiddleware(user,pass) {
}
var requestUser = basicAuth(req);
if (!requestUser || requestUser.name !== user || !checkPasswordAndCache(requestUser.pass)) {
res.set('WWW-Authenticate', 'Basic realm=Authorization Required');
res.set('WWW-Authenticate', 'Basic realm="Authorization Required"');
return res.sendStatus(401);
}
next();
Expand Down

0 comments on commit 2f93bb9

Please sign in to comment.