mirror of
https://github.com/typesense/typesense.git
synced 2025-05-18 04:32:38 +08:00
Fix exported content having a stray trailing char.
This commit is contained in:
parent
29551e8134
commit
4fb5b2854e
@ -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;
|
||||
}
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user