]> www.dolda2000.com Git - ashd.git/commitdiff
accesslog: Remember to flush request-body.
authorFredrik Tolf <fredrik@dolda2000.com>
Fri, 8 Apr 2016 05:39:45 +0000 (07:39 +0200)
committerFredrik Tolf <fredrik@dolda2000.com>
Fri, 8 Apr 2016 05:39:45 +0000 (07:39 +0200)
src/accesslog.c

index 536f118c3d8c5e5bb777b9356f47c8552aa842e9..1addb387a4db3db824e5e060057413e1386779d6 100644 (file)
@@ -261,6 +261,8 @@ static void filterreq(struct muth *mt, va_list args)
     
     if(passdata(cl, hd, &data.bytesin))
        goto out;
+    if(fflush(hd))
+       goto out;
     shutdown(pfds[1], SHUT_WR);
     if((resp = parseresponse(hd)) == NULL)
        goto out;