Skip to content

A feature-rich command-line audio/video downloader

Let YoutubeDLHandler (transparent gzip) handle HTTPS URLs as well (Needed for #579)

Philipp Hagemeister0f8d03f81cb2
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index 4dcf189914..44f939053a 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -506,3 +506,6 @@ class YoutubeDLHandler(compat_urllib_request.HTTPHandler):
resp = self.addinfourl_wrapper(gz, old_resp.headers, old_resp.url, old_resp.code)
resp.msg = old_resp.msg
return resp
+
+ https_request = http_request
+ https_response = http_response