From 7afd76b4d4dcbc0e2a29b1d6a6d764951f283611 Mon Sep 17 00:00:00 2001 From: Strahinja Val Markovic Date: Tue, 8 Oct 2013 20:49:00 -0700 Subject: [PATCH] Better url joining in base_request --- python/ycm/client/base_request.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/ycm/client/base_request.py b/python/ycm/client/base_request.py index ddd2b2c8..8781c5d3 100644 --- a/python/ycm/client/base_request.py +++ b/python/ycm/client/base_request.py @@ -20,6 +20,7 @@ import vim import json import requests +import urlparse from retries import retries from requests_futures.sessions import FuturesSession from concurrent.futures import ThreadPoolExecutor @@ -111,7 +112,7 @@ def JsonFromFuture( future ): def _BuildUri( handler ): - return ''.join( [ BaseRequest.server_location, '/', handler ] ) + return urlparse.urljoin( BaseRequest.server_location, handler ) SERVER_HEALTHY = False