mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-08-04 14:49:36 +00:00
Just use the global instead of calling the function again
This commit is contained in:
parent
d1be67be48
commit
47c17d4a49
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue