aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--moonclient/moonclient/shell.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/moonclient/moonclient/shell.py b/moonclient/moonclient/shell.py
index ce2b0102..79f9a244 100644
--- a/moonclient/moonclient/shell.py
+++ b/moonclient/moonclient/shell.py
@@ -141,7 +141,7 @@ class MoonClient(App):
# TODO: we must manage authentication and requests with secure protocol (ie. HTTPS)
if not port:
port = self.port
- conn = httplib.HTTPConnection(self.host, port)
+ conn = httplib.HTTPConnection(self.host, int(port))
self.log.debug("Host: {}:{}".format(self.host, self.port))
headers = {
"Content-type": "application/x-www-form-urlencoded",