mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:06:26 +08:00
DEV: Add default Accept-Language
to FinalDestination requests (#13817)
Not specifying an `Accept-Language` should be equivalent to specifying an `Accept-Language` of `*`, however some webservers seem to prefer it if we are explicit about being able to handle a response of content in any language.
This commit is contained in:
parent
c191194046
commit
09d23a37a5
|
@ -89,6 +89,7 @@ class FinalDestination
|
||||||
result = {
|
result = {
|
||||||
"User-Agent" => @user_agent,
|
"User-Agent" => @user_agent,
|
||||||
"Accept" => "*/*",
|
"Accept" => "*/*",
|
||||||
|
"Accept-Language" => "*",
|
||||||
"Host" => @uri.hostname
|
"Host" => @uri.hostname
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user