Better url joining in base_request
This commit is contained in:
parent
daa0d50655
commit
7afd76b4d4
@ -20,6 +20,7 @@
|
|||||||
import vim
|
import vim
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
|
import urlparse
|
||||||
from retries import retries
|
from retries import retries
|
||||||
from requests_futures.sessions import FuturesSession
|
from requests_futures.sessions import FuturesSession
|
||||||
from concurrent.futures import ThreadPoolExecutor
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
@ -111,7 +112,7 @@ def JsonFromFuture( future ):
|
|||||||
|
|
||||||
|
|
||||||
def _BuildUri( handler ):
|
def _BuildUri( handler ):
|
||||||
return ''.join( [ BaseRequest.server_location, '/', handler ] )
|
return urlparse.urljoin( BaseRequest.server_location, handler )
|
||||||
|
|
||||||
|
|
||||||
SERVER_HEALTHY = False
|
SERVER_HEALTHY = False
|
||||||
|
Loading…
x
Reference in New Issue
Block a user