mirror of https://github.com/yt-dlp/yt-dlp.git
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):
|
def merge_headers(*dicts):
|
||||||
"""Merge dicts of http headers case insensitively, prioritizing the latter ones"""
|
"""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