mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
[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 be4a824d74
Authored-by: coletdjnz
This commit is contained in:
parent
06cc8f103b
commit
379a4f161d
1 changed files with 1 additions and 1 deletions
|
@ -1343,7 +1343,7 @@ def http_request(self, req):
|
|||
|
||||
req.headers = handle_youtubedl_headers(req.headers)
|
||||
|
||||
return req
|
||||
return super().do_request_(req)
|
||||
|
||||
def http_response(self, req, resp):
|
||||
old_resp = resp
|
||||
|
|
Loading…
Reference in a new issue