-
Notifications
You must be signed in to change notification settings - Fork 191
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
http status string depends on system locale only #426
Comments
By some reason httpStatus string localize to the current locale, not request locale (Content-Language).
|
Latest commit changed it has a wrong description (as it localized status strings based on Accept-Languages) |
the issue can be resolved via replace httpStatus() with _httpStatus(). |
Do not use private APIs
If you are writing an HTTP server, use the |
And to close the loop on this now that I've had a chance to look at the code, I'll put together a fix that gets the locale for the response language and uses the localized string for it instead of the default (system) locale. |
In answer to GET / request with Accept-Language: en
I still get localized http status 200 string
I guess http answer have to use language as in Content-Language field.
The text was updated successfully, but these errors were encountered: