Skip to content

Commit

Permalink
Change https port to be an optional parameter
Browse files Browse the repository at this point in the history
VerifiedHTTPSConnection inherits from HTTPSConnection so 'port' should be
an optional argument. If not present it will be set by HTTPSConnection
in the usual way: by parsing the host string (eg 'localhost:8443')
or setting to the default of '443'.

Addresses bug 1102944.

Change-Id: I2c2cb92f824acf15b0ff54590b5614cf206b57e0
  • Loading branch information
Stuart McLaren committed Jan 22, 2013
1 parent a5f996c commit 8d0d4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glanceclient/common/http.py
Expand Up @@ -246,7 +246,7 @@ class VerifiedHTTPSConnection(httplib.HTTPSConnection):
Note: Much of this functionality can eventually be replaced
with native Python 3.3 code.
"""
def __init__(self, host, port, key_file=None, cert_file=None,
def __init__(self, host, port=None, key_file=None, cert_file=None,
cacert=None, timeout=None, insecure=False,
ssl_compression=True):
httplib.HTTPSConnection.__init__(self, host, port,
Expand Down

0 comments on commit 8d0d4b9

Please sign in to comment.