[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
pull/4165/head
coletdev 2 years ago committed by GitHub
parent 06cc8f103b
commit 379a4f161d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save