From 09d23a37a547b3a18f1d35d2aeca510456453c92 Mon Sep 17 00:00:00 2001 From: jbrw Date: Thu, 22 Jul 2021 01:49:59 -0400 Subject: [PATCH] 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. --- lib/final_destination.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/final_destination.rb b/lib/final_destination.rb index 2cc9b5c305d..d2a8b03b5d7 100644 --- a/lib/final_destination.rb +++ b/lib/final_destination.rb @@ -89,6 +89,7 @@ class FinalDestination result = { "User-Agent" => @user_agent, "Accept" => "*/*", + "Accept-Language" => "*", "Host" => @uri.hostname }