Commit b1d132c5 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Don't try to stream when there is no body.

parent 302d463c
......@@ -747,6 +747,10 @@ cnt_fetchbody(struct sess *sp)
if (!sp->wantbody)
sp->wrk->do_stream = 0;
/* No reason to try streaming a non-existing body */
if (sp->wrk->body_status == BS_NONE)
sp->wrk->do_stream = 0;
l = http_EstimateWS(sp->wrk->beresp,
pass ? HTTPH_R_PASS : HTTPH_A_INS, &nhttp);
......
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