From 76aa99137475698941a86edd010d67ff4caa88a2 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 11 Mar 2022 14:24:45 +0530 Subject: [PATCH] Fix case of `http_headers` Bug in 8b7539d27c0a47d8d08e0522bdb66c571483377b Fixes https://github.com/yt-dlp/yt-dlp/issues/1346#issuecomment-1064527765 --- yt_dlp/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 97bd33506a..38aeb6918f 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))}