mirror of
https://github.com/meilisearch/MeiliSearch
synced 2024-11-22 21:04:27 +01:00
fix the content-type
This commit is contained in:
parent
1dc99ea451
commit
fe7640555d
@ -37,10 +37,10 @@ fn guard_json(head: &actix_web::dev::RequestHead) -> bool {
|
|||||||
content_type
|
content_type
|
||||||
.to_str()
|
.to_str()
|
||||||
.map(|v| v.contains("application/json"))
|
.map(|v| v.contains("application/json"))
|
||||||
// if no content-type is specified we still accept the data as json!
|
.unwrap_or(false)
|
||||||
.unwrap_or(true)
|
|
||||||
} else {
|
} else {
|
||||||
false
|
// if no content-type is specified we still accept the data as json!
|
||||||
|
true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user