kopia lustrzana https://github.com/yt-dlp/yt-dlp
rodzic
f2f108b754
commit
d5d83395ab
|
@ -517,7 +517,6 @@ class Response(io.IOBase):
|
|||
self.reason = reason or HTTPStatus(status).phrase
|
||||
except ValueError:
|
||||
self.reason = None
|
||||
self.extras = {}
|
||||
|
||||
def readable(self):
|
||||
return self.fp.readable()
|
||||
|
|
|
@ -67,8 +67,7 @@ class ImpersonateResponse(Response):
|
|||
"""
|
||||
def __init__(self, *args, impersonate: ImpersonateTarget | None, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
if impersonate is not None:
|
||||
self.extras['impersonate'] = impersonate
|
||||
self.impersonate = impersonate
|
||||
|
||||
|
||||
class ImpersonateRequestHandler(RequestHandler, ABC):
|
||||
|
|
Ładowanie…
Reference in New Issue