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:
jbrw 2021-07-22 01:49:59 -04:00 committed by GitHub
parent c191194046
commit 09d23a37a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
} }