From 08b3f4e5f80d89320f86e6281ca916ffd019d576 Mon Sep 17 00:00:00 2001 From: CIzz22 Date: Tue, 3 Feb 2026 07:42:42 +0000 Subject: [PATCH] Update 'src/middleware.py' --- src/middleware.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/middleware.py b/src/middleware.py index 64e38b9..3f52151 100644 --- a/src/middleware.py +++ b/src/middleware.py @@ -144,11 +144,11 @@ class RequestValidationMiddleware(BaseHTTPMiddleware): if content_type.startswith("application/json"): body = await request.body() - if len(body) > MAX_JSON_BODY_SIZE: - raise HTTPException( - status_code=413, - detail="JSON body too large", - ) + #if len(body) > MAX_JSON_BODY_SIZE: + # raise HTTPException( + # status_code=413, + # detail="JSON body too large", + # ) if body: try: