Build user agent, if not built by the time build_request happens
This commit is contained in:
parent
ff606d0ec1
commit
713860a4b4
|
@ -299,6 +299,9 @@ def build_request(url, data=None, headers={}):
|
|||
|
||||
"""
|
||||
|
||||
if not USER_AGENT:
|
||||
build_user_agent()
|
||||
|
||||
if url[0] == ':':
|
||||
schemed_url = '%s%s' % (SCHEME, url)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue