commit 77a198e810ffec89d5bcb23583f1a0593247ffe8
parent 128dfe374659f722afe1d10c80554f60948b1afe
Author: ThomasV <thomasv@gitorious>
Date: Fri, 18 Nov 2011 11:52:29 +0100
https
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/client/electrum.py b/client/electrum.py
@@ -429,7 +429,7 @@ class Wallet:
import httplib, urllib
params = urllib.urlencode({'q':request})
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
- conn = httplib.HTTPConnection(self.host)
+ conn = httplib.HTTPSConnection(self.host) if self.port == 443 else httplib.HTTPConnection(self.host)
conn.request("POST", "/electrum.php", params, headers)
response = conn.getresponse()
if response.status == 200: