From 92485803f6e752a80d45a64323f4205028259553 Mon Sep 17 00:00:00 2001 From: des Date: Fri, 4 May 2007 12:28:56 +0000 Subject: [PATCH] Apply the workaround suggested in #102. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1382 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_center.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 1d810743..19c057eb 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -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 */ -- 2.39.5