Commit 21b7258b authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

I have not been able to reproduce this exact circumstance, but the

fix is readily obvious, so:  Tighten requirement for range delivery.

Fixes	#1007
parent 050d0ff3
......@@ -276,9 +276,13 @@ RES_WriteObj(struct sess *sp)
*/
low = 0;
high = sp->obj->len - 1;
if (!(sp->wrk->res_mode & (RES_ESI|RES_ESI_CHILD|RES_GUNZIP)) &&
params->http_range_support && sp->obj->response == 200 &&
sp->wantbody && http_GetHdr(sp->http, H_Range, &r))
if (
sp->wantbody &&
(sp->wrk->res_mode & RES_LEN) &&
!(sp->wrk->res_mode & (RES_ESI|RES_ESI_CHILD|RES_GUNZIP)) &&
params->http_range_support &&
sp->obj->response == 200 &&
http_GetHdr(sp->http, H_Range, &r))
res_dorange(sp, r, &low, &high);
/*
......
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