From ba958f341bcbf06db719dd5a63c1b2ada45f11f8 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 11 Jan 2020 17:55:18 +0000 Subject: [PATCH] also Accept-Language "en" in HTTP requests (0.5 weight) --- src/utils/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/http.py b/src/utils/http.py index 11d63797..7cdae077 100644 --- a/src/utils/http.py +++ b/src/utils/http.py @@ -98,7 +98,7 @@ class Request(object): def get_headers(self) -> typing.Dict[str, str]: headers = self.headers.copy() if not "Accept-Language" in headers: - headers["Accept-Language"] = "en-GB" + headers["Accept-Language"] = "en-GB,en;q=0.5" if not "User-Agent" in headers: headers["User-Agent"] = self.useragent or USERAGENT if not "Content-Type" in headers and self.content_type: