Make sure cleanhost only has one trailing slash
This commit is contained in:
1 parent
a428d36604
commit
3baf12d3e4
1 file changed
+2
-2
@@ -113,8 +113,8 @@ def cleanHost(host):
|
||||
if not host.startswith(('http://', 'https://')):
|
||||
host = 'http://' + host
|
||||
|
||||
if not host.endswith('/'):
|
||||
host += '/'
|
||||
host = host.rstrip('/')
|
||||
host += '/'
|
||||
|
||||
return host
|
||||
|
||||
|
||||
Reference in new issue
Block a user