req.request is "HEAD". This is what broke the RePurge test case.
Ideally, sp->wantbody would be controllable by VCL.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1780
d4fa192b-c00b-0410-8231-
f00ffab90ce4
VCL_recv_method(sp);
- sp->wantbody = (!strcmp(sp->http->hd[HTTP_HDR_REQ].b, "GET") ||
- !strcmp(sp->http->hd[HTTP_HDR_REQ].b, "POST"));
+ sp->wantbody = (strcmp(sp->http->hd[HTTP_HDR_REQ].b, "HEAD") != 0);
switch(sp->handling) {
case VCL_RET_LOOKUP:
/* XXX: discard req body, if any */