Commit 4f9db605 authored by Nils Goroll's avatar Nils Goroll

fix genereal request preparation which needs to be done at all levels

move a block of initializations statements which should run at all
levels
parent 52e8c010
......@@ -646,6 +646,11 @@ vdp_pesi_init(struct req *req, void **priv)
if (!ObjHasAttr(req->wrk, req->objcore, OA_ESIDATA))
return (1);
RFC2616_Weaken_Etag(req->resp);
req->res_mode |= RES_ESI;
if (req->resp_len != 0)
req->resp_len = -1;
if (req->esi_level > 0) {
CAST_OBJ_NOTNULL(pesi, req->transport_priv, PESI_MAGIC);
*priv = pesi;
......@@ -692,10 +697,6 @@ vdp_pesi_init(struct req *req, void **priv)
get_task_cfg(req, &pesi->flags);
pecx = pesi->pecx;
*priv = pesi;
RFC2616_Weaken_Etag(req->resp);
req->res_mode |= RES_ESI;
if (req->resp_len != 0)
req->resp_len = -1;
node_fill_nodestock(req->ws, &pesi->nodestock);
pesi_tree->tree->front = pesi_tree->tree->root = root_node =
......
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