1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-03-09 12:50:23 -05:00
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()