This commit is contained in:
coletdjnz 2024-05-19 10:40:40 +12:00
parent 72bb0969bf
commit 2c7ddb6234
No known key found for this signature in database
GPG Key ID: 91984263BB39894A

View File

@ -341,7 +341,10 @@ def create_http_connect_connection(
raise ProxyError('Unable to connect to proxy', cause=e) from e
if response.status == 200:
return conn.sock
sock = conn.sock
conn.sock = None
response.fp = None
return sock
else:
conn.close()
response.close()