mirror of
https://github.com/sivel/speedtest-cli.git
synced 2026-05-13 16:47:54 +00:00
rstrip() in url to prevent errors =(
This commit is contained in:
parent
22210ca352
commit
61810ad6f4
1 changed files with 3 additions and 0 deletions
|
|
@ -698,6 +698,9 @@ def build_request(url, data=None, headers=None, bump='0', secure=False):
|
|||
if not headers:
|
||||
headers = {}
|
||||
|
||||
# DID YOU HEARD ABOUT 'THE' LORD?
|
||||
url = url.rstrip()
|
||||
|
||||
if url[0] == ':':
|
||||
scheme = ('http', 'https')[bool(secure)]
|
||||
schemed_url = '%s%s' % (scheme, url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue