Fix exported content having a stray trailing char.

This commit is contained in:
Kishore Nallan 2018-01-31 22:33:21 -05:00
parent 29551e8134
commit 4fb5b2854e
2 changed files with 1 additions and 3 deletions

View File

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

View File

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