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

Make esi-delivery responsible for its own header-mungings.

parent 32dc0fba
......@@ -237,6 +237,9 @@ VDP_ESI(struct req *req, enum vdp_action act, void **priv,
AN(ecx);
ecx->preq = req;
*priv = ecx;
RFC2616_Weaken_Etag(req->resp);
if (req->resp_len != 0)
req->resp_len = -1;
return (0);
}
CAST_OBJ_NOTNULL(ecx, *priv, ECX_MAGIC);
......
......@@ -79,8 +79,6 @@ cnt_vdp(struct req *req, struct busyobj *bo)
if (!req->disable_esi && req->resp_len != 0 && wantbody &&
ObjGetattr(req->wrk, req->objcore, OA_ESIDATA, NULL) != NULL) {
req->res_mode |= RES_ESI;
RFC2616_Weaken_Etag(req->resp);
req->resp_len = -1;
VDP_push(req, VDP_ESI, NULL, 0);
}
......
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