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 536f118..1addb38 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;