fixes cgi content length check

Sat, 28 Jan 2017 10:53:46 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 28 Jan 2017 10:53:46 +0100
changeset 164
6f47eb624665
parent 163
3589ed579127
child 168
5c752979bfd6

fixes cgi content length check

src/server/safs/cgi.c file | annotate | diff | comparison | revisions
--- a/src/server/safs/cgi.c	Sat Jan 28 10:50:18 2017 +0100
+++ b/src/server/safs/cgi.c	Sat Jan 28 10:53:46 2017 +0100
@@ -162,7 +162,7 @@
                 }
             }
         } else {
-            response_length = r;
+            response_length += r;
             wr = net_write(sn->csd, buf, r);
             if(wr <= 0) {
                 result = REQ_ABORTED;

mercurial