diff --git a/swift/auth/server.py b/swift/auth/server.py index 780975b759..06e755f767 100644 --- a/swift/auth/server.py +++ b/swift/auth/server.py @@ -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,