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

Correctly initialize esi-included req->http0

parent 026e9ede
......@@ -92,10 +92,11 @@ ved_include(struct req *preq, const char *src, const char *host)
HTTP_Copy(req->http0, preq->http0);
req->http0->ws = req->ws;
req->http0->vsl = req->vsl;
req->http0->logtag = SLT_ReqMethod;
req->http0->conds = 0;
HTTP_Setup(req->http, req->ws, req->vsl, SLT_ReqMethod);
http_SetH(req->http0, HTTP_HDR_URL, src);
if (host != NULL && *host != '\0') {
http_Unset(req->http0, H_Host);
......
......@@ -356,7 +356,7 @@ V1D_Deliver(struct req *req, struct busyobj *bo)
else if (!req->gzip_resp &&
ObjCheckFlag(req->wrk, req->objcore, OF_GZIPED))
VDP_push(req, VDP_gunzip, NULL);
if (req->res_mode & RES_ESI)
ESI_Deliver(req);
else
......
......@@ -76,7 +76,7 @@ V1L_Reserve(struct worker *wrk, struct ws *ws, int *fd, struct vsl_log *vsl,
CHECK_OBJ_NOTNULL(wrk, WORKER_MAGIC);
AZ(wrk->v1l);
res = WS_Snapshot(ws);
v1l = WS_Alloc(ws, sizeof *v1l);
AN(v1l);
......
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