From 1a0085fb691068b36f583935374c609c5d017ea0 Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 15 Jun 2010 08:49:22 +0000 Subject: Make sure commit/discard are actually performed even though there are no data. --- server/src/server.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'server') 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(); -- cgit v1.2.3