diff options
Diffstat (limited to 'client/gentoostats/utils.py')
-rw-r--r-- | client/gentoostats/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/gentoostats/utils.py b/client/gentoostats/utils.py index af8dab2..cc23033 100644 --- a/client/gentoostats/utils.py +++ b/client/gentoostats/utils.py @@ -8,14 +8,14 @@ except ImportError: # json headers for gentoostats-cli headers = {'Accept': 'application/json'} -def GET(server, url, headers, https=True): +def GET(server, port, url, headers, https=True): """ Get url from server using headers """ if https: - conn = httplib.HTTPSConnection(server) + conn = httplib.HTTPSConnection(server, port) else: - conn = httplib.HTTPConnection(server) + conn = httplib.HTTPConnection(server, port) try: conn.request('GET', url=url, headers=headers) data = conn.getresponse().read().decode("utf-8") |