mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 18:51:08 +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:
@ -89,6 +89,7 @@ class FinalDestination
|
||||
result = {
|
||||
"User-Agent" => @user_agent,
|
||||
"Accept" => "*/*",
|
||||
"Accept-Language" => "*",
|
||||
"Host" => @uri.hostname
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user