Updated to take into account ssl

This commit is contained in:
Chuck Thier 2010-10-19 22:35:18 +00:00
parent 9df40c2ee8
commit db072cb292

View File

@ -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,