mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-24 00:38:05 +00:00
[utils] Fix call to _create_http_connection
Avoid confusion over args/kwargs.
This commit is contained in:
parent
500b8b41c1
commit
c5a59d9391
1 changed files with 2 additions and 2 deletions
|
@ -545,7 +545,7 @@ class ContentTooShortError(Exception):
|
||||||
self.expected = expected
|
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)
|
hc = http_class(*args, **kwargs)
|
||||||
source_address = ydl_handler._params.get('source_address')
|
source_address = ydl_handler._params.get('source_address')
|
||||||
if source_address is not None:
|
if source_address is not None:
|
||||||
|
@ -589,7 +589,7 @@ class YoutubeDLHandler(compat_urllib_request.HTTPHandler):
|
||||||
|
|
||||||
def http_open(self, req):
|
def http_open(self, req):
|
||||||
return self.do_open(functools.partial(
|
return self.do_open(functools.partial(
|
||||||
_create_http_connection, self, compat_http_client.HTTPConnection),
|
_create_http_connection, self, compat_http_client.HTTPConnection, False),
|
||||||
req)
|
req)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|
Loading…
Reference in a new issue