From bddd65411ebedb608235fd7df0c674176031e9f0 Mon Sep 17 00:00:00 2001 From: H Vs Date: Tue, 1 Apr 2025 17:53:26 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/middleware.py b/app/middleware.py index 26a2679..c702df6 100644 --- a/app/middleware.py +++ b/app/middleware.py @@ -122,7 +122,7 @@ async def http_context_v1(request: Request, call_next): return JSONResponse(content=result.model_dump(), status_code=response.status_code) async def http_context(request: Request, call_next): - + request.state.max_request_size = MAX_REQUEST_SIZE # 生成唯一ID request_id = str(uuid.uuid4()) # 检查请求大小