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()))
|
||||
conn.commit()
|
||||
if parsed.port is None:
|
||||
port = 80
|
||||
port = {'http': 80, 'https': 443}.get(parsed.scheme, 80)
|
||||
else:
|
||||
port = parsed.port
|
||||
conn = http_connect(parsed.hostname, port, 'PUT', parsed.path,
|
||||
|
Loading…
Reference in New Issue
Block a user