Skip to content

Commit 2399405

Browse files
committed
PYTHON-5038 Disable check_hostname
1 parent 123991b commit 2399405

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

test/asynchronous/test_encryption.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2884,6 +2884,7 @@ async def http_post(self, path, data=None):
28842884
# each request because the server is single threaded.
28852885
ctx = ssl.create_default_context(cafile=CA_PEM)
28862886
ctx.load_cert_chain(CLIENT_PEM)
2887+
ctx.check_hostname = False
28872888
ctx.verify_mode = ssl.CERT_NONE
28882889
conn = http.client.HTTPSConnection("127.0.0.1:9003", context=ctx)
28892890
try:

test/test_encryption.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,6 +2866,7 @@ def http_post(self, path, data=None):
28662866
# each request because the server is single threaded.
28672867
ctx = ssl.create_default_context(cafile=CA_PEM)
28682868
ctx.load_cert_chain(CLIENT_PEM)
2869+
ctx.check_hostname = False
28692870
ctx.verify_mode = ssl.CERT_NONE
28702871
conn = http.client.HTTPSConnection("127.0.0.1:9003", context=ctx)
28712872
try:

0 commit comments

Comments
 (0)