summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--datastore-leveldb/src/web.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/datastore-leveldb/src/web.cpp b/datastore-leveldb/src/web.cpp
index cbadc57..443e782 100644
--- a/datastore-leveldb/src/web.cpp
+++ b/datastore-leveldb/src/web.cpp
@@ -173,6 +173,7 @@ void web_handle_api_range_size(const boost::cmatch &match, struct mg_connection
outbuf.seekp(0);
actual_size++;
}
- mg_printf(conn, "], \"actual_size\":%ld}\r\n", actual_size);
+ outbuf << "], \"actual_size\":" << actual_size << "}\r\n";
+ mg_write(conn, outbuf.str().c_str(), outbuf.tellp());
delete it;
}