Delete wrong argument from creating HTTP connection
HTTPConnection() doesn't take the argument 'context' while HTTPSConnection() accepts it at creating a connection in an object client. HTTP connection doesn't require an SSL context. Change-Id: I51ffc8cd04fe90493e23b0f0ca9b0420c5a24cd5
This commit is contained in:
parent
d8904d0aee
commit
a811f44b55
|
@ -166,7 +166,6 @@ class ObjectClient(rest_client.RestClient):
|
|||
conn = httplib.HTTPSConnection(parsed_url.netloc,
|
||||
context=context)
|
||||
else:
|
||||
conn = httplib.HTTPConnection(parsed_url.netloc,
|
||||
context=context)
|
||||
conn = httplib.HTTPConnection(parsed_url.netloc)
|
||||
|
||||
return conn
|
||||
|
|
Loading…
Reference in New Issue