Skip to content

Commit 0516d10

Browse files
committed
do not send two PHAs
since with request_pha we send the CertificateRequest always, if we combine it with `/secret` we end up with two requests
1 parent cef7d75 commit 0516d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ def do_GET(self):
572572
else:
573573
raise ValueError("Invalid return from "
574574
"send_keyupdate_request")
575-
if self.path.startswith('/secret'):
575+
if self.path.startswith('/secret') and not request_pha:
576576
try:
577577
for i in self.connection.request_post_handshake_auth():
578578
pass

0 commit comments

Comments
 (0)