diff options
Diffstat (limited to 'clients/network_client.py')
-rw-r--r-- | clients/network_client.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clients/network_client.py b/clients/network_client.py index 8278ae4..87f870e 100644 --- a/clients/network_client.py +++ b/clients/network_client.py @@ -49,7 +49,7 @@ class BBJ(object): See the offical API error documentation for more details. """ - def __init__(self, host="127.0.0.1", port=7099): + def __init__(self, host="127.0.0.1", port=7099, https=False): """ Optionally takes port and host as kwargs. It will immediately try to resolve a connection to the server, if its down, it @@ -71,7 +71,7 @@ class BBJ(object): If you set this to False, anonymous network usage is guaranteed. """ - self.base = "http://{}:{}/api/%s".format(host, port) + self.base = "http{}://{}:{}/api/%s".format("s" if https else "", host, port) self.user_name = self.user_auth = None self.send_auth = True try: |