summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authordeva <deva>2010-06-15 08:49:22 +0000
committerdeva <deva>2010-06-15 08:49:22 +0000
commit1a0085fb691068b36f583935374c609c5d017ea0 (patch)
tree5a26220e9bbe78df87582c9909f459872ec3967e /server
parent653eb23b01c2066daccfe9f29ae1044802ef7481 (diff)
Make sure commit/discard are actually performed even though there are no data.
Diffstat (limited to 'server')
-rw-r--r--server/src/server.cc5
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();