diff --git a/gophish/client.py b/gophish/client.py index 61e0562..a945a24 100644 --- a/gophish/client.py +++ b/gophish/client.py @@ -10,7 +10,10 @@ class GophishClient(object): def __init__(self, api_key, host=DEFAULT_URL, **kwargs): self.api_key = api_key - self.host = host + if host.endswith('/'): + self.host = host + else: + self.host = host + '/' self._client_kwargs = kwargs def execute(self, method, path, **kwargs):