mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-11-28 05:37:26 +08:00
🐛 fix quart implement
This commit is contained in:
parent
edb7c79acf
commit
c76dae584e
@ -149,7 +149,6 @@ class Driver(ReverseDriver):
|
|||||||
log_config=LOGGING_CONFIG,
|
log_config=LOGGING_CONFIG,
|
||||||
**kwargs)
|
**kwargs)
|
||||||
|
|
||||||
@overrides(ReverseDriver)
|
|
||||||
async def _handle_http(self, adapter: str):
|
async def _handle_http(self, adapter: str):
|
||||||
request: Request = _request
|
request: Request = _request
|
||||||
data: bytes = await request.get_data() # type: ignore
|
data: bytes = await request.get_data() # type: ignore
|
||||||
@ -179,7 +178,6 @@ class Driver(ReverseDriver):
|
|||||||
return Response(response and response.body or "",
|
return Response(response and response.body or "",
|
||||||
response and response.status or 200)
|
response and response.status or 200)
|
||||||
|
|
||||||
@overrides(ReverseDriver)
|
|
||||||
async def _handle_ws_reverse(self, adapter: str):
|
async def _handle_ws_reverse(self, adapter: str):
|
||||||
websocket: QuartWebSocket = _websocket
|
websocket: QuartWebSocket = _websocket
|
||||||
ws = WebSocket(websocket.http_version, websocket.scheme,
|
ws = WebSocket(websocket.http_version, websocket.scheme,
|
||||||
|
Loading…
Reference in New Issue
Block a user