1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-17 06:35:42 +07:00

[downloader] Fix invocation of HttpieFD

Closes #3154
This commit is contained in:
pukkandan
2022-03-25 12:38:33 +05:30
parent 1fb707badb
commit 28787f16c6
2 changed files with 29 additions and 15 deletions

View File

@@ -5502,3 +5502,11 @@ def _cancel_all_tasks(loop):
def merge_headers(*dicts):
"""Merge dicts of http headers case insensitively, prioritizing the latter ones"""
return {k.title(): v for k, v in itertools.chain.from_iterable(map(dict.items, dicts))}
class classproperty:
def __init__(self, f):
self.f = f
def __get__(self, _, cls):
return self.f(cls)