remove un-needed code

This commit is contained in:
Matthew Welch 2024-11-28 12:09:36 -08:00
parent 5be0d6dbcd
commit 1ced8795ef

View File

@ -28,7 +28,6 @@ class URL:
) )
s.connect((self.host, self.port)) s.connect((self.host, self.port))
if self.scheme == "https": if self.scheme == "https":
ssl.create_default_context()
context = ssl.SSLContext(ssl.PROTOCOL_TLS) context = ssl.SSLContext(ssl.PROTOCOL_TLS)
s = context.wrap_socket(s, server_hostname=self.host) s = context.wrap_socket(s, server_hostname=self.host)