Skip to content

Commit ed22b52

Browse files
committed
Remove double slash
Merging domain url and path url create double slash which causes on localhost error 404 (Page not found). Signed-off-by: Martin Sakin <[email protected]>
1 parent 226cb9d commit ed22b52

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/vsc/utils/rest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,8 @@ def get_connection(self, method, url, body, headers):
215215
sep = '/'
216216
else:
217217
sep = ''
218+
if self.url.endswith('/') and url.startswith('/'):
219+
url = url[1:]
218220
if body:
219221
body = body.encode()
220222
request = Request(self.url + sep + url, data=body)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
]
4545

4646
PACKAGE = {
47-
'version': '3.4.5',
47+
'version': '3.4.6',
4848
'author': [sdw, jt, ag, kh],
4949
'maintainer': [sdw, jt, ag, kh],
5050
# as long as 1.0.0 is not out, vsc-base should still provide vsc.fancylogger

0 commit comments

Comments
 (0)