Fix issue in getting current request through classmethod when served through a different ASGI server (#2760)
This commit is contained in:
parent
af67801062
commit
50117d174c
|
@ -175,6 +175,7 @@ class ASGIApp:
|
||||||
instance.transport,
|
instance.transport,
|
||||||
sanic_app,
|
sanic_app,
|
||||||
)
|
)
|
||||||
|
request_class._current.set(instance.request)
|
||||||
instance.request.stream = instance # type: ignore
|
instance.request.stream = instance # type: ignore
|
||||||
instance.request_body = True
|
instance.request_body = True
|
||||||
instance.request.conn_info = ConnInfo(instance.transport)
|
instance.request.conn_info = ConnInfo(instance.transport)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user