Skip to content

Commit db072cb

Browse files
committed
Updated to take into account ssl
1 parent 9df40c2 commit db072cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift/auth/server.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ def add_storage_account(self, account_name=''):
198198
(token, time()))
199199
conn.commit()
200200
if parsed.port is None:
201-
port = 80
201+
port = {'http': 80, 'https': 443}.get(parsed.scheme, 80)
202202
else:
203203
port = parsed.port
204204
conn = http_connect(parsed.hostname, port, 'PUT', parsed.path,

0 commit comments

Comments
 (0)