Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

Fix charset in content type header.

Kishore Nallan8ebabe9cdbc1
diff --git a/src/core_api.cpp b/src/core_api.cpp
index 86b85e27..68f144bf 100644
--- a/src/core_api.cpp
+++ b/src/core_api.cpp
@@ -729,7 +729,7 @@ bool get_export_documents(const std::shared_ptr<http_req>& req, const std::share
}
}
- res->content_type_header = "text/plain; charset=utf8";
+ res->content_type_header = "text/plain; charset=utf-8";
res->status_code = 200;
stream_response(req, res);
@@ -902,7 +902,7 @@ bool post_import_documents(const std::shared_ptr<http_req>& req, const std::shar
}
}
- res->content_type_header = "text/plain; charset=utf8";
+ res->content_type_header = "text/plain; charset=utf-8";
res->status_code = 200;
res->body = response_stream.str();