From 85626cff8ea4c39a1d454553e608eb3245b4cefc Mon Sep 17 00:00:00 2001 From: karribalu Date: Sat, 25 Nov 2023 18:41:16 +0000 Subject: [PATCH] Fixed payload limit setting being ignored for delete documents by batch route --- meilisearch/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/meilisearch/src/lib.rs b/meilisearch/src/lib.rs index 16c08c6c2..0dba77e08 100644 --- a/meilisearch/src/lib.rs +++ b/meilisearch/src/lib.rs @@ -397,6 +397,7 @@ pub fn configure_data( .app_data(web::Data::from(analytics)) .app_data( web::JsonConfig::default() + .limit(http_payload_size_limit) .content_type(|mime| mime == mime::APPLICATION_JSON) .error_handler(|err, req: &HttpRequest| match err { JsonPayloadError::ContentType => match req.headers().get(CONTENT_TYPE) {