mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-27 14:06:27 +00:00
fix(http): fix panic when sending document update without content type header
This commit is contained in:
@@ -535,7 +535,7 @@ impl DocumentsAggregator {
|
|||||||
.headers()
|
.headers()
|
||||||
.get(CONTENT_TYPE)
|
.get(CONTENT_TYPE)
|
||||||
.map(|s| s.to_str().unwrap_or("unkown"))
|
.map(|s| s.to_str().unwrap_or("unkown"))
|
||||||
.unwrap()
|
.unwrap_or("unkown")
|
||||||
.to_string();
|
.to_string();
|
||||||
ret.content_types.insert(content_type);
|
ret.content_types.insert(content_type);
|
||||||
ret.index_creation = index_creation;
|
ret.index_creation = index_creation;
|
||||||
|
|||||||
Reference in New Issue
Block a user