mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
https
This commit is contained in:
parent
128dfe3746
commit
77a198e810
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ class Wallet:
|
||||||
import httplib, urllib
|
import httplib, urllib
|
||||||
params = urllib.urlencode({'q':request})
|
params = urllib.urlencode({'q':request})
|
||||||
headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain"}
|
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)
|
conn.request("POST", "/electrum.php", params, headers)
|
||||||
response = conn.getresponse()
|
response = conn.getresponse()
|
||||||
if response.status == 200:
|
if response.status == 200:
|
||||||
|
|
Loading…
Add table
Reference in a new issue