Make sure that marathon URL ends with trailing slash (#718)

This commit is contained in:
tamarrow
2016-08-15 16:23:27 -07:00
committed by GitHub
parent a4d9efa0e7
commit bb4a965492

View File

@@ -130,6 +130,8 @@ class Client(object):
"""
def __init__(self, marathon_url, timeout=http.DEFAULT_TIMEOUT):
if not marathon_url.endswith('/'):
marathon_url += '/'
self._base_url = marathon_url
self._timeout = timeout