summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-01-10 20:05:28 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-01-10 20:05:30 +0100
commitc5a59d9391d23fc2f13cd87ba27982c98caa29ff (patch)
treec25f9ac5210d1499d285661ef78f591d5fcd5796
parent500b8b41c1a1c27da64def50514c247e05f6fbbe (diff)
downloadyoutube-dl-c5a59d9391d23fc2f13cd87ba27982c98caa29ff.tar.gz
youtube-dl-c5a59d9391d23fc2f13cd87ba27982c98caa29ff.tar.xz
youtube-dl-c5a59d9391d23fc2f13cd87ba27982c98caa29ff.zip
[utils] Fix call to _create_http_connection
Avoid confusion over args/kwargs.
-rw-r--r--youtube_dl/utils.py4
1 files changed, 2 insertions, 2 deletions
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