mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-04 06:40:52 +00:00
Build user agent, if not built by the time build_request happens
This commit is contained in:
parent
ff606d0ec1
commit
713860a4b4
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue