On Sun, Oct 19, 2008 at 23:41, Christian Schmidt <[EMAIL PROTECTED]> wrote: > When a header has been set using header('Foo: bar') it can be replaced with > another value, but it cannot be removed.
Hah! Hit that one last Friday too, gosh that was annoying! > I suggest extending the behaviour of header() so that when the first > argument does not contain a colon (and does not begin with "HTTP/"), e.g. > header('Vary'), it unsets the header with the specified name. I decided to > extend the existing header() function rather than adding a new function, > because the existing function already supports multiple actions (add, append > and replace). That isn't very intuitive. I would think it was a typo when reading such code and fix the header line... I'd suggest explicit header_remove("Vary"); -Hannes -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php