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:
Hironori Shiina 2021-01-13 13:38:10 -05:00
parent d8904d0aee
commit a811f44b55
1 changed files with 1 additions and 2 deletions

View File

@ -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