mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +08:00
Fixed payload limit setting being ignored for delete documents by batch route
This commit is contained in:
parent
b366acdae6
commit
85626cff8e
@ -397,6 +397,7 @@ pub fn configure_data(
|
|||||||
.app_data(web::Data::from(analytics))
|
.app_data(web::Data::from(analytics))
|
||||||
.app_data(
|
.app_data(
|
||||||
web::JsonConfig::default()
|
web::JsonConfig::default()
|
||||||
|
.limit(http_payload_size_limit)
|
||||||
.content_type(|mime| mime == mime::APPLICATION_JSON)
|
.content_type(|mime| mime == mime::APPLICATION_JSON)
|
||||||
.error_handler(|err, req: &HttpRequest| match err {
|
.error_handler(|err, req: &HttpRequest| match err {
|
||||||
JsonPayloadError::ContentType => match req.headers().get(CONTENT_TYPE) {
|
JsonPayloadError::ContentType => match req.headers().get(CONTENT_TYPE) {
|
||||||
|
Loading…
Reference in New Issue
Block a user