Commit 9137f642 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't bother iterating over zerolength objects

parent 3d1d51e2
......@@ -769,6 +769,9 @@ VED_Deliver(struct req *req, struct boc *boc, int wantbody)
if (wantbody == 0)
return;
if (boc == NULL && ObjGetLen(req->wrk, req->objcore) == 0)
return;
req->res_mode |= RES_ESI_CHILD;
i = ObjCheckFlag(req->wrk, req->objcore, OF_GZIPED);
if (ecx->isgzip && i && !(req->res_mode & RES_ESI)) {
......
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