Add support for IronPython

This commit is contained in:
Sergey M․ 2018-01-28 03:04:39 +07:00
parent c989bdbef8
commit 65220c3bd6
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D
3 changed files with 32 additions and 14 deletions

View file

@ -866,8 +866,8 @@ def _create_http_connection(ydl_handler, http_class, is_https, *args, **kwargs):
# expected HTTP responses to meet HTTP/1.0 or later (see also
# https://github.com/rg3/youtube-dl/issues/6727)
if sys.version_info < (3, 0):
kwargs[b'strict'] = True
hc = http_class(*args, **kwargs)
kwargs['strict'] = True
hc = http_class(*args, **compat_kwargs(kwargs))
source_address = ydl_handler._params.get('source_address')
if source_address is not None:
sa = (source_address, 0)