]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Typo. It is rather obvious that this code isn't tested :/
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Oct 2010 10:45:16 +0000 (10:45 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 13 Oct 2010 10:45:16 +0000 (10:45 +0000)
Lib/http/client.py

index 13dc3594ebd39e6a1adabe70313765195f4a7b71..1039fa5c3ab011ec9a8630a7d3bb0b5c9e32c46f 100644 (file)
@@ -1067,7 +1067,7 @@ else:
                 raise ValueError("check_hostname needs a SSL context with "
                                  "either CERT_OPTIONAL or CERT_REQUIRED")
             if key_file or cert_file:
-                context.load_cert_chain(certfile, keyfile)
+                context.load_cert_chain(cert_file, key_file)
             self._context = context
             self._check_hostname = check_hostname