diff options
author | deva <deva> | 2010-06-15 08:49:22 +0000 |
---|---|---|
committer | deva <deva> | 2010-06-15 08:49:22 +0000 |
commit | 1a0085fb691068b36f583935374c609c5d017ea0 (patch) | |
tree | 5a26220e9bbe78df87582c9909f459872ec3967e /server | |
parent | 653eb23b01c2066daccfe9f29ae1044802ef7481 (diff) |
Make sure commit/discard are actually performed even though there are no data.
Diffstat (limited to 'server')
-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(); |