Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8060399

Browse files
committed
Typo. It is rather obvious that this code isn't tested :/
1 parent 1ab19ca commit 8060399

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/http/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ def __init__(self, host, port=None, key_file=None, cert_file=None,
10671067
raise ValueError("check_hostname needs a SSL context with "
10681068
"either CERT_OPTIONAL or CERT_REQUIRED")
10691069
if key_file or cert_file:
1070-
context.load_cert_chain(certfile, keyfile)
1070+
context.load_cert_chain(cert_file, key_file)
10711071
self._context = context
10721072
self._check_hostname = check_hostname
10731073

0 commit comments

Comments
 (0)