-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Basic auth: use UTF-8 by default #69
Comments
Thanks :) |
Hi, |
@mbiebl here we go - https://github.com/sabre-io/http/pull/91/files |
@DeepDiver1975 nice, thanks. Do you have an ETA for the 4.2.4 release? Could we just release 4.2.4 with this one change? |
why not - @staabm any objections? |
preparing release in here #96 ... |
In the past (since RFC 2617), there have been difficulties with non-US-ASCII characters in Basic auth credentials. Some clients use ISO-8859-1, some use UTF-8, and so on the server side. In reality, only US-ASCII characters are usable expect for proprietary solutions where clients and servers are tailored together.
Since RFC 7617, it's clear that UTF-8 is the future.
requireLogin()
: Please sendBasic realm="…",charset="UTF-8"
(see RFC 7617) on the server side in the 401 response, so that clients know that the server expects UTF-8 credentials.getCredentials()
: Make sure that UTF-8 credentials are understood correctly.The text was updated successfully, but these errors were encountered: