Commit 8061a7c8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Rememeber to supress body if we do 304 conditional response.

Fixes	#1518
parent e99e8fba
......@@ -149,8 +149,10 @@ cnt_deliver(struct worker *wrk, struct req *req)
if (!(req->obj->objcore->flags & OC_F_PASS)
&& req->esi_level == 0
&& http_GetStatus(req->obj->http) == 200
&& req->http->conds && RFC2616_Do_Cond(req))
&& req->http->conds && RFC2616_Do_Cond(req)) {
http_PutResponse(req->resp, "HTTP/1.1", 304, NULL);
req->wantbody = 0;
}
V1D_Deliver(req);
VSLb_ts_req(req, "Resp", W_TIM_real(wrk));
......
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