fix(http): fix panic when sending document update without content type header

This commit is contained in:
ad hoc 2022-03-29 09:48:25 +02:00
parent 7e65816d63
commit 6c2fdc7743
No known key found for this signature in database
GPG Key ID: 4F00A782990CC643

View File

@ -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;