mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-01-06 13:35:50 +01:00
parent
1fb707badb
commit
28787f16c6
2 changed files with 29 additions and 15 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue