From 66f48c2d509b8c34a49dabe175afe03f804abdbc Mon Sep 17 00:00:00 2001 From: Benoit SAGE Date: Fri, 2 Mar 2018 16:04:38 +0100 Subject: [PATCH] http/https correction removing os.pathJoin, removing authority on certain condition --- bots/botslib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/botslib.py b/bots/botslib.py index 2ea405c2..01f863c2 100644 --- a/bots/botslib.py +++ b/bots/botslib.py @@ -865,7 +865,7 @@ def __str__(self): fullhost = self._uri['hostname'] + port if self._uri['hostname'] else '' authority = '//' + userinfo + fullhost if fullhost else '' if self._uri['path'] or self._uri['filename']: - terug = os.path.join(authority,self._uri['path'],self._uri['filename']) + terug = authority + '/' + self._uri['path'] + '/' + self._uri['filename']) else: terug = authority return scheme + terug