From db072cb292cf6539a57d2c04f91558c116dd9d7f Mon Sep 17 00:00:00 2001 From: Chuck Thier Date: Tue, 19 Oct 2010 22:35:18 +0000 Subject: [PATCH] Updated to take into account ssl --- swift/auth/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,