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 exported content having a stray trailing char.

Kishore Nallan4fb5b2854e10
diff --git a/src/api.cpp b/src/api.cpp
index 002fe140..8a43d80d 100644
--- a/src/api.cpp
+++ b/src/api.cpp
@@ -317,9 +317,8 @@ void collection_export_handler(http_req* req, http_res* res, void* data) {
if(it->Valid() && it->key().ToString().compare(0, seq_id_prefix.size(), seq_id_prefix) == 0) {
res->body += "\n";
}
-
} else {
- res->body = true;
+ res->body = "";
res->final = true;
delete it;
}
diff --git a/src/http_server.cpp b/src/http_server.cpp
index 258689d0..27008a7e 100644
--- a/src/http_server.cpp
+++ b/src/http_server.cpp
@@ -220,7 +220,6 @@ const char* HttpServer::get_status_reason(uint32_t status_code) {
case 201: return "Created";
case 400: return "Bad Request";
case 401: return "Unauthorized";
- case 403: return "Forbidden";
case 404: return "Not Found";
case 409: return "Conflict";
case 422: return "Unprocessable Entity";