mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-08-24 08:11:14 +02: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 @@ def _cancel_all_tasks(loop):
|
|||||||
|
|
||||||
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
Block a user