remove un-needed code
This commit is contained in:
parent
5be0d6dbcd
commit
1ced8795ef
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user