Fixes #318
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3193
d4fa192b-c00b-0410-8231-
f00ffab90ce4
return;
}
+ if (VTAILQ_EMPTY(&sp->obj->store))
+ return;
+
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
if (!(params->esi_syntax & 0x00000001)) {
--- /dev/null
+# $Id$
+
+test "ESI with no body in response"
+
+server s1 {
+ rxreq
+ txresp -status 302
+} -start
+
+varnish v1 -vcl+backend {
+ sub vcl_fetch {
+ esi;
+ pass;
+ }
+} -start
+
+client c1 {
+ txreq
+ rxresp
+ expect resp.status == 302
+} -run
+