diff options
-rw-r--r-- | server/src/server.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/server/src/server.cc b/server/src/server.cc index f8f2d83..0f77866 100644 --- a/server/src/server.cc +++ b/server/src/server.cc @@ -73,7 +73,10 @@ public: bool complete(void *ptr, Httpd::Reply &reply) { Connection *connection = (Connection *)ptr; - + + // Flush and do commit/discard + connection->handle(NULL, 0); + reply.data = connection->getResponse(); reply.headers["Content-Type"] = "text/plain; charset=UTF-8"; reply.headers["SessionID"] = connection->getSessionID(); |