From 6c2fdc7743c8eab94c9247883afac878151e0a6d Mon Sep 17 00:00:00 2001 From: ad hoc Date: Tue, 29 Mar 2022 09:48:25 +0200 Subject: [PATCH] fix(http): fix panic when sending document update without content type header --- meilisearch-http/src/analytics/segment_analytics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/analytics/segment_analytics.rs b/meilisearch-http/src/analytics/segment_analytics.rs index 905d55281..693d63015 100644 --- a/meilisearch-http/src/analytics/segment_analytics.rs +++ b/meilisearch-http/src/analytics/segment_analytics.rs @@ -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;