src/server/daemon/httprequest.c

changeset 80
0de4a90979e1
parent 79
f48cea237ec3
child 83
28433f06d5ee
--- a/src/server/daemon/httprequest.c	Wed Jun 26 15:09:54 2013 +0200
+++ b/src/server/daemon/httprequest.c	Wed Jun 26 17:14:45 2013 +0200
@@ -684,12 +684,14 @@
                 ret = nsapi_exec(d, sn, rq);
             }
             
-            
-            if(ret != REQ_PROCEED) {
-                fprintf(stderr, "saf not proceed\n");
-            }
             if(ret != REQ_NOACTION) {
-                if(ret == REQ_PROCESSING) {
+                if(ret == REQ_PROCEED) {
+                    /*
+                     * flush buffer and add termination if chunked encoding
+                     * is enabled
+                     */
+                    net_finish(sn->sn.csd);
+                } else if(ret == REQ_PROCESSING) {
                     /* save nsapi context */
                     rq->context.objset_index = i;
 

mercurial