Fix lint
This commit is contained in:
parent
87778277e0
commit
876aa5a9b1
@ -48,7 +48,8 @@ def custom_headers(url):
|
||||
for header, value in conf_headers.items():
|
||||
headers[header.encode('ascii')] = value.encode('ascii')
|
||||
|
||||
accept_language = config.instance.get('content.headers.accept_language', url=url)
|
||||
accept_language = config.instance.get('content.headers.accept_language',
|
||||
url=url)
|
||||
if accept_language is not None:
|
||||
headers[b'Accept-Language'] = accept_language.encode('ascii')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user