aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoletdev <coletdjnz@protonmail.com>2022-06-24 03:29:28 +0000
committerGitHub <noreply@github.com>2022-06-24 03:29:28 +0000
commit379a4f161d4ad3e40932dcf5aca6e6fb9715ab28 (patch)
tree1ea03987c630884c578b75453536151cf6981d0e
parent06cc8f103b571380b30f03beff94d522930f64e4 (diff)
downloadhypervideo-pre-379a4f161d4ad3e40932dcf5aca6e6fb9715ab28.tar.lz
hypervideo-pre-379a4f161d4ad3e40932dcf5aca6e6fb9715ab28.tar.xz
hypervideo-pre-379a4f161d4ad3e40932dcf5aca6e6fb9715ab28.zip
[utils] Fix inconsistent default handling between HTTP and HTTPS requests (#4158)
Default headers such as `Content-Type` were only being added for HTTPS requests among other handling. Fixes bug in https://github.com/ytdl-org/youtube-dl/commit/be4a824d74add1a3b78b8244dff12f4f078f168a Authored-by: coletdjnz
-rw-r--r--yt_dlp/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index 4dfdbd58b..3fc4961dd 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