Commit 764b8780 authored by Antoine Pitrou's avatar Antoine Pitrou

Fix test failure with -bb

parent 45df8205
......@@ -376,14 +376,14 @@ else:
self.close()
return
elif (self.server.starttls_server and
stripped == 'STARTTLS'):
stripped == b'STARTTLS'):
if support.verbose and self.server.connectionchatty:
sys.stdout.write(" server: read STARTTLS from client, sending OK...\n")
self.write(b"OK\n")
if not self.wrap_conn():
return
elif (self.server.starttls_server and self.sslconn
and stripped == 'ENDTLS'):
and stripped == b'ENDTLS'):
if support.verbose and self.server.connectionchatty:
sys.stdout.write(" server: read ENDTLS from client, sending OK...\n")
self.write(b"OK\n")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment