mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-03 20:07:09 +02:00
fix(http): fix panic when sending document update without content type header
This commit is contained in:
parent
7e65816d63
commit
6c2fdc7743
1 changed files with 1 additions and 1 deletions
|
@ -535,7 +535,7 @@ impl DocumentsAggregator {
|
|||
.headers()
|
||||
.get(CONTENT_TYPE)
|
||||
.map(|s| s.to_str().unwrap_or("unkown"))
|
||||
.unwrap()
|
||||
.unwrap_or("unkown")
|
||||
.to_string();
|
||||
ret.content_types.insert(content_type);
|
||||
ret.index_creation = index_creation;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue