aboutsummaryrefslogtreecommitdiff
path: root/src/utils/http.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-01-11 17:55:18 +0000
committerGravatar jesopo2020-01-11 17:55:18 +0000
commitba958f341bcbf06db719dd5a63c1b2ada45f11f8 (patch)
tree1d165ee7064830f104ac8feb224caeb51bdb3374 /src/utils/http.py
parentseds starting with numbers caused an "invalid group reference" (diff)
signature
also Accept-Language "en" in HTTP requests (0.5 weight)
Diffstat (limited to 'src/utils/http.py')
-rw-r--r--src/utils/http.py2
1 files changed, 1 insertions, 1 deletions
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: