Just use the global instead of calling the function again

This commit is contained in:
Matt Martz 2015-05-13 11:35:01 -05:00
parent d1be67be48
commit 47c17d4a49
1 changed files with 1 additions and 1 deletions

View File

@ -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)