Mailing List Archive

[mod_backhand-users] unsetting Content-length
On line 699 of mod_backhand.c, Content-length gets removed from the headers,
but only if keep-alives are off.

What's wrong with having Connection: close and a Content-length: header
coming back with the reponse? Before I was using backhand, I was sending
both headers all the time... a content-length header lets clients show an
accurate percentage bar while they download stuff.

I see no need for line 699 at all. Is there some reason this is done? Is
this against spec?

- Brad
[mod_backhand-users] unsetting Content-length [ In reply to ]
Brad Fitzpatrick wrote:
> On line 699 of mod_backhand.c, Content-length gets removed from the headers,
> but only if keep-alives are off.
>
> What's wrong with having Connection: close and a Content-length: header
> coming back with the reponse? Before I was using backhand, I was sending
> both headers all the time... a content-length header lets clients show an
> accurate percentage bar while they download stuff.
>
> I see no need for line 699 at all. Is there some reason this is done? Is
> this against spec?

Nope... point taken. I will change that and do some testing.

--
Theo Schlossnagle
1024D/A8EBCF8F/13BD 8C08 6BE2 629A 527E 2DC2 72C2 AD05 A8EB CF8F
2047R/33131B65/71 F7 95 64 49 76 5D BA 3D 90 B9 9F BE 27 24 E7