Commit 7b1006de authored by Tollef Fog Heen's avatar Tollef Fog Heen

Reset RES_CHUNKED if we are not sending a body

We were accidentially sending an end-chunk in some cases where a
response was bodyless such as for 304s.
parent 01ad19ef
......@@ -365,6 +365,9 @@ RES_WriteObj(struct sess *sp)
sp->acct_tmp.hdrbytes +=
http_Write(sp->wrk, sp->wrk->resp, 1);
if (!sp->wantbody)
sp->wrk->res_mode &= ~RES_CHUNKED;
if (sp->wrk->res_mode & RES_CHUNKED)
WRW_Chunked(sp->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