mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-01 12:05:26 +02:00
Try this
This commit is contained in:
parent
72bb0969bf
commit
2c7ddb6234
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user