Ensure endpoint doesn't contain trailing slash
Change-Id: I06f54ca49f7a8aae22e886aa11edf59b66dbbff2
This commit is contained in:
parent
5e2ee51976
commit
ce0a38ab48
@ -34,7 +34,7 @@ class HttpClient(object):
|
||||
def __init__(self, endpoint="http://127.0.0.1:8000", timeout=30, auth=None):
|
||||
self.log = logging.getLogger(__name__)
|
||||
|
||||
self.endpoint = endpoint
|
||||
self.endpoint = endpoint.rstrip("/")
|
||||
self.timeout = timeout
|
||||
self.headers = {
|
||||
"User-Agent": "ara-http-client_%s" % CLIENT_VERSION,
|
||||
|
Loading…
Reference in New Issue
Block a user