Re: http header deletion?

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Sun, 16 Dec 2007 02:47:37 +0100

On mån, 2007-12-10 at 17:26 +0900, Adrian Chadd wrote:

> Why/where is the code assuming that offset 0 will be HDR_DATE and offset 1 will
> be HDR_EXPIRES? The replacement code doesn't check to see whether anything is
> at the position in the array that its inserting into..

It isn't assuming or replacing. It's inserting these at the beginning of
the response, before any other headers that may be there.

Why at the beginning? Because there is broken software out there
assuming Date is before Last-Modified etc, or not reading more than x <
512 bytes of response headers..

Yes, it costs a memmove, and occational growth of the array size..

Regards
Henrik

Received on Sat Dec 15 2007 - 18:47:43 MST

This archive was generated by hypermail pre-2.1.9 : Mon Dec 31 2007 - 12:00:03 MST