|
function unauthorized() { |
|
if(challenge) { |
|
var challengeString = 'Basic' |
|
var realmName = realm(req) |
|
|
|
if(realmName) |
|
challengeString += ' realm="' + realmName + '"' |
|
|
|
res.set('WWW-Authenticate', challengeString) |
|
} |
Now that UTF-8 has become the de facto universal standard, I suggest adding the UTF-8 charset auth-param defined by RFC 7617, to the WWW-Authenticate header field value express-basic-auth produces.
WWW-Authenticate: Basic realm="real", charset="UTF-8"
express-basic-auth/index.js
Lines 66 to 75 in dd17b4d
Now that UTF-8 has become the de facto universal standard, I suggest adding the UTF-8
charsetauth-paramdefined by RFC 7617, to theWWW-Authenticateheader field valueexpress-basic-authproduces.