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 for POST request with updated Http client in analytics manager

ozanarmagan13ca8c595729
diff --git a/src/analytics_manager.cpp b/src/analytics_manager.cpp
index 2d51d215..9c5fe583 100644
--- a/src/analytics_manager.cpp
+++ b/src/analytics_manager.cpp
@@ -204,8 +204,9 @@ void AnalyticsManager::run(ReplicationState* raft_server) {
"/documents/import?action=emplace";
std::string res;
std::map<std::string, std::string> res_headers;
+ std::unordered_map<std::string, std::string> headers;
long status_code = HttpClient::post_response(resource_url, import_payload,
- res, res_headers, 10*1000);
+ res, res_headers, headers, 10*1000);
if(status_code != 200) {
LOG(ERROR) << "Error while sending query suggestions events to leader. "