0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-12-29 01:51:06 +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:
pukkandan 2022-03-11 14:24:45 +05:30
parent 24e3d87431
commit 76aa991374
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39

View file

@ -5489,4 +5489,4 @@ def _cancel_all_tasks(loop):
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))}