API client: Enforce https
This commit is contained in:
parent
2264b0886f
commit
32716892d7
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ import sys
|
|||
def sendReq(url):
|
||||
def send(payload, host):
|
||||
try:
|
||||
req = urllib.request.Request('http://{}/{}'.format(host, url),
|
||||
req = urllib.request.Request('https://{}/{}'.format(host, url),
|
||||
json.dumps(payload).encode('ascii'))
|
||||
req.add_header('Content-Type', 'application/json')
|
||||
handle = urllib.request.urlopen(req)
|
||||
|
|
Loading…
Reference in a new issue