diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-11 14:24:45 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-03-11 19:29:34 +0530 |
commit | 76aa99137475698941a86edd010d67ff4caa88a2 (patch) | |
tree | d2232196fcec0a92d4f2fe4cd97993559f56b551 /yt_dlp/utils.py | |
parent | 24e3d87431855fd30ecf738ed7ddc6d89c6b5ef9 (diff) | |
download | hypervideo-pre-76aa99137475698941a86edd010d67ff4caa88a2.tar.lz hypervideo-pre-76aa99137475698941a86edd010d67ff4caa88a2.tar.xz hypervideo-pre-76aa99137475698941a86edd010d67ff4caa88a2.zip |
Fix case of `http_headers`
Bug in 8b7539d27c0a47d8d08e0522bdb66c571483377b
Fixes https://github.com/yt-dlp/yt-dlp/issues/1346#issuecomment-1064527765
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 97bd33506..38aeb6918 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -5489,4 +5489,4 @@ has_websockets = bool(compat_websockets) def merge_headers(*dicts): """Merge dicts of http headers case insensitively, prioritizing the latter ones""" - return {k.capitalize(): v for k, v in itertools.chain.from_iterable(map(dict.items, dicts))} + return {k.title(): v for k, v in itertools.chain.from_iterable(map(dict.items, dicts))} |