This commit is contained in:
DingZQ
2025-08-15 14:50:58 +08:00
parent 40f3ae02fb
commit 3b1a4b4b95

11
main.py
View File

@@ -159,17 +159,6 @@ lock_simulation = Value('i', 0)
app.add_middleware(GZipMiddleware, minimum_size=1000)
async def receive_with_body(body: bytes) -> Receive:
async def receive() -> dict:
return {
"type": "http.request",
"body": body,
"more_body": False,
}
return receive
logger = logging.getLogger()
logger.setLevel(logging.INFO)