diff --git a/lib/vsc/utils/rest.py b/lib/vsc/utils/rest.py index 0301f07c..1433562b 100644 --- a/lib/vsc/utils/rest.py +++ b/lib/vsc/utils/rest.py @@ -211,10 +211,11 @@ def hash_pass(self, password, username=None): return 'Basic ' + encoded_credentials def get_connection(self, method, url, body, headers): - if not self.url.endswith('/') and not url.startswith('/'): - sep = '/' - else: + url = url.lstrip('/') + if self.url.endswith('/'): sep = '' + else: + sep = '/' if body: body = body.encode() request = Request(self.url + sep + url, data=body) diff --git a/setup.py b/setup.py index bf2ddd77..fe5d4c49 100755 --- a/setup.py +++ b/setup.py @@ -44,7 +44,7 @@ ] PACKAGE = { - 'version': '3.4.5', + 'version': '3.4.6', 'author': [sdw, jt, ag, kh], 'maintainer': [sdw, jt, ag, kh], # as long as 1.0.0 is not out, vsc-base should still provide vsc.fancylogger