revert to orig impl

Authored by: bashonly
This commit is contained in:
bashonly 2024-04-23 14:33:48 -05:00
parent f2f108b754
commit d5d83395ab
No known key found for this signature in database
GPG Key ID: 783F096F253D15B0
2 changed files with 1 additions and 3 deletions

View File

@ -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()

View File

@ -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):