diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-01-28 03:04:39 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-01-28 05:48:18 +0700 |
commit | 65220c3bd6bfcb9023af904634ce1e76592cfe3e (patch) | |
tree | d41c43c81d631e0d0e5275b39ac38874ada5e333 /youtube_dl/utils.py | |
parent | c989bdbef8fdcfd38d51b987a4c745479d02e2f2 (diff) |
Add support for IronPython
Diffstat (limited to 'youtube_dl/utils.py')
-rw-r--r-- | youtube_dl/utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py index 2fe9cf585..ef44b99a5 100644 --- a/youtube_dl/utils.py +++ b/youtube_dl/utils.py @@ -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) |