WebBrowser/SafeBrowsing/SafeBrowsingUrl.py

branch
safe_browsing
changeset 5829
d3448873ced3
parent 5817
a5f6c9128500
child 5832
28f36b9c925f
--- a/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py	Sun Jul 30 19:56:04 2017 +0200
+++ b/WebBrowser/SafeBrowsing/SafeBrowsingUrl.py	Fri Aug 04 18:38:45 2017 +0200
@@ -108,9 +108,8 @@
             query = None
         if not path:
             path = '/'
-        hasTrailingSlash = (path[-1] == '/')
         path = posixpath.normpath(path).replace('//', '/')
-        if hasTrailingSlash and path[-1] != '/':
+        if path[-1] != '/':
             path += '/'
         port = urlParts.port
         host = host.strip('.')

eric ide

mercurial