Make sure cleanhost only has one trailing slash

This commit is contained in:
Ruud
2013-09-02 14:54:54 +02:00
parent a428d36604
commit 3baf12d3e4

View File

@@ -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