Skip to content

A feature-rich command-line audio/video downloader

[utils] Fix inconsistent default handling between HTTP and HTTPS requests (#4158)

coletdev379a4f161d4a
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 4dfdbd58bc..3fc4961dd3 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -1343,7 +1343,7 @@ class YoutubeDLHandler(compat_urllib_request.HTTPHandler):
req.headers = handle_youtubedl_headers(req.headers)
- return req
+ return super().do_request_(req)
def http_response(self, req, resp):
old_resp = resp