- 
                Notifications
    You must be signed in to change notification settings 
- Fork 56
Open
Labels
Description
Lines 66 to 75 in dd17b4d
| 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"