mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-03-16 13:10:12 +01:00
Build user agent, if not built by the time build_request happens
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user