Commit ea2bfcce authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make sure ESI includes don't trip the director NULL check in vcl_recv.

Fixes #339



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@3262 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 7abb6695
......@@ -828,6 +828,12 @@ ESI_Deliver(struct sess *sp)
http_Unset(sp->http, H_If_Modified_Since);
http_SetHeader(sp->wrk, sp->fd, sp->http, eb->host.b);
}
/*
* XXX: We should decide if we should cache the director
* XXX: or not (for session/backend coupling). Until then
* XXX: make sure we don't trip up the check in vcl_recv.
*/
sp->director = NULL;
sp->step = STP_RECV;
http_ForceGet(sp->http);
http_Unset(sp->http, H_Content_Length);
......
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