mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 10:50:38 +00:00
Fix case of http_headers
Bug in 8b7539d27c
Fixes https://github.com/yt-dlp/yt-dlp/issues/1346#issuecomment-1064527765
This commit is contained in:
parent
24e3d87431
commit
76aa991374
@ -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))}
|
||||
|
Loading…
Reference in New Issue
Block a user