Better url joining in base_request
This commit is contained in:
parent
daa0d50655
commit
7afd76b4d4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user