revert to orig impl

Authored by: bashonly
pull/9756/head
bashonly 2024-04-23 14:33:48 -05:00
rodzic f2f108b754
commit d5d83395ab
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 783F096F253D15B0
2 zmienionych plików z 1 dodań i 3 usunięć

Wyświetl plik

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

Wyświetl plik

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