also Accept-Language "en" in HTTP requests (0.5 weight)

This commit is contained in:
jesopo 2020-01-11 17:55:18 +00:00
parent dff1a8fb7f
commit ba958f341b

View file

@ -98,7 +98,7 @@ class Request(object):
def get_headers(self) -> typing.Dict[str, str]: def get_headers(self) -> typing.Dict[str, str]:
headers = self.headers.copy() headers = self.headers.copy()
if not "Accept-Language" in headers: 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: if not "User-Agent" in headers:
headers["User-Agent"] = self.useragent or USERAGENT headers["User-Agent"] = self.useragent or USERAGENT
if not "Content-Type" in headers and self.content_type: if not "Content-Type" in headers and self.content_type: