Changed the auth code to use a default port of 80 if the port is not specified in default_storage_url
This commit is contained in:
commit
8170d7246b
@ -197,7 +197,11 @@ YOU HAVE A FEW OPTIONS:
|
|||||||
(?, ?, '.super_admin', '.single_use', '.reseller_admin')''',
|
(?, ?, '.super_admin', '.single_use', '.reseller_admin')''',
|
||||||
(token, time()))
|
(token, time()))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
conn = http_connect(parsed.hostname, parsed.port, 'PUT', parsed.path,
|
if parsed.port is None:
|
||||||
|
port = {'http': 80, 'https': 443}.get(parsed.scheme, 80)
|
||||||
|
else:
|
||||||
|
port = parsed.port
|
||||||
|
conn = http_connect(parsed.hostname, port, 'PUT', parsed.path,
|
||||||
{'X-Auth-Token': token}, ssl=(parsed.scheme == 'https'))
|
{'X-Auth-Token': token}, ssl=(parsed.scheme == 'https'))
|
||||||
resp = conn.getresponse()
|
resp = conn.getresponse()
|
||||||
resp.read()
|
resp.read()
|
||||||
|
Loading…
Reference in New Issue
Block a user