mirror of
https://github.com/sivel/speedtest-cli.git
synced 2025-07-21 20:51:19 +02:00
Just use the global instead of calling the function again
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user