Just use the global instead of calling the function again
This commit is contained in:
parent
d1be67be48
commit
47c17d4a49
|
@ -215,7 +215,7 @@ def build_request(url, data=None, headers={}):
|
|||
else:
|
||||
schemed_url = url
|
||||
|
||||
headers['User-Agent'] = build_user_agent()
|
||||
headers['User-Agent'] = user_agent
|
||||
return Request(schemed_url, data=data, headers=headers)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue