rstrip() in url to prevent errors =(
This commit is contained in:
parent
22210ca352
commit
61810ad6f4
|
|
@ -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…
Reference in New Issue