Mailing List Archive

r1382 - trunk/varnish-cache/bin/varnishd
Author: des
Date: 2007-05-04 14:28:56 +0200 (Fri, 04 May 2007)
New Revision: 1382

Modified:
trunk/varnish-cache/bin/varnishd/cache_center.c
Log:
Apply the workaround suggested in #102.


Modified: trunk/varnish-cache/bin/varnishd/cache_center.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_center.c 2007-05-04 12:25:23 UTC (rev 1381)
+++ trunk/varnish-cache/bin/varnishd/cache_center.c 2007-05-04 12:28:56 UTC (rev 1382)
@@ -657,7 +657,8 @@

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 */