We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe6e9a7 commit 5dfd698Copy full SHA for 5dfd698
elasticsearch/connection/http_requests.py
@@ -46,7 +46,7 @@ def __init__(self, host='localhost', port=9200, http_auth=None,
46
self.session.verify = verify_certs
47
if not client_key:
48
self.session.cert = client_cert
49
- else:
+ elif client_cert:
50
# cert is a tuple of (certfile, keyfile)
51
self.session.cert = (client_cert, client_key)
52
if ca_certs:
0 commit comments