X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Futils.py;h=42f0b07ce89bc882fe38319ded77c077238250d2;hb=4340decad25e264863e27538847e17918b4c1ae2;hp=cc5f510f40fff66ce374f2586aae43686a240b7d;hpb=be4a824d74add1a3b78b8244dff12f4f078f168a;p=youtube-dl diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index cc5f510f4..42f0b07ce 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -545,7 +545,7 @@ class ContentTooShortError(Exception): self.expected = expected -def _create_http_connection(ydl_handler, http_class, is_https=False, *args, **kwargs): +def _create_http_connection(ydl_handler, http_class, is_https, *args, **kwargs): hc = http_class(*args, **kwargs) source_address = ydl_handler._params.get('source_address') if source_address is not None: @@ -589,7 +589,7 @@ class YoutubeDLHandler(compat_urllib_request.HTTPHandler): def http_open(self, req): return self.do_open(functools.partial( - _create_http_connection, self, compat_http_client.HTTPConnection), + _create_http_connection, self, compat_http_client.HTTPConnection, False), req) @staticmethod