Ensure endpoint doesn't contain trailing slash

Change-Id: I06f54ca49f7a8aae22e886aa11edf59b66dbbff2
This commit is contained in:
Sagi Shnaidman 2019-09-19 14:40:26 +03:00
parent 5e2ee51976
commit ce0a38ab48
1 changed files with 1 additions and 1 deletions

View File

@ -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,