]> err.no Git - varnish/commitdiff
Apply the workaround suggested in #102.
authordes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 4 May 2007 12:28:56 +0000 (12:28 +0000)
committerdes <des@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 4 May 2007 12:28:56 +0000 (12:28 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1382 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index 1d810743078fefa30b51a002cab8a5b086728bf4..19c057eb150ebe310b35aabcb37cbb703fa5068f 100644 (file)
@@ -657,7 +657,8 @@ cnt_recv(struct sess *sp)
 
        VCL_recv_method(sp);
 
-       sp->wantbody = !strcmp(sp->http->hd[HTTP_HDR_REQ].b, "GET");
+       sp->wantbody = (!strcmp(sp->http->hd[HTTP_HDR_REQ].b, "GET") ||
+           !strcmp(sp->http->hd[HTTP_HDR_REQ].b, "POST"));
        switch(sp->handling) {
        case VCL_RET_LOOKUP:
                /* XXX: discard req body, if any */