Commit 9ba58680 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

ESI processing should ignore responses with no body.

Fixes #318



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3193 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 4df4ffa4
......@@ -635,6 +635,9 @@ VRT_ESI(struct sess *sp)
return;
}
if (VTAILQ_EMPTY(&sp->obj->store))
return;
CHECK_OBJ_NOTNULL(sp->obj, OBJECT_MAGIC);
if (!(params->esi_syntax & 0x00000001)) {
......
# $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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment