Make sure cleanhost only has one trailing slash
This commit is contained in:
@@ -113,8 +113,8 @@ def cleanHost(host):
|
|||||||
if not host.startswith(('http://', 'https://')):
|
if not host.startswith(('http://', 'https://')):
|
||||||
host = 'http://' + host
|
host = 'http://' + host
|
||||||
|
|
||||||
if not host.endswith('/'):
|
host = host.rstrip('/')
|
||||||
host += '/'
|
host += '/'
|
||||||
|
|
||||||
return host
|
return host
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user