Updated to take into account ssl
This commit is contained in:
parent
9df40c2ee8
commit
db072cb292
@ -198,7 +198,7 @@ YOU HAVE A FEW OPTIONS:
|
|||||||
(token, time()))
|
(token, time()))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
if parsed.port is None:
|
if parsed.port is None:
|
||||||
port = 80
|
port = {'http': 80, 'https': 443}.get(parsed.scheme, 80)
|
||||||
else:
|
else:
|
||||||
port = parsed.port
|
port = parsed.port
|
||||||
conn = http_connect(parsed.hostname, port, 'PUT', parsed.path,
|
conn = http_connect(parsed.hostname, port, 'PUT', parsed.path,
|
||||||
|
Loading…
Reference in New Issue
Block a user