mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-07-25 15:51:03 +00:00
fix payload content type guards
This commit is contained in:
@ -33,9 +33,9 @@ macro_rules! guard_content_type {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
guard_content_type!(guard_ndjson, "application/x-ndjson");
|
||||||
|
guard_content_type!(guard_csv, "text/csv");
|
||||||
guard_content_type!(guard_json, "application/json");
|
guard_content_type!(guard_json, "application/json");
|
||||||
guard_content_type!(guard_csv, "application/csv");
|
|
||||||
guard_content_type!(guard_ndjson, "application/ndjson");
|
|
||||||
|
|
||||||
fn empty_application_type(head: &actix_web::dev::RequestHead) -> bool {
|
fn empty_application_type(head: &actix_web::dev::RequestHead) -> bool {
|
||||||
head.headers.get("Content-Type").is_none()
|
head.headers.get("Content-Type").is_none()
|
||||||
|
Reference in New Issue
Block a user