1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-04 22:37:56 -04: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 @@ has_websockets = bool(compat_websockets)
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)