You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by André Malo <nd...@perlig.de> on 2004/06/06 19:21:53 UTC

Drop ErrorHeader -> extend Header (was: cvs commit: httpd-2.0 STATUS)

* bnicholes@apache.org wrote:

>        *) mod_headers: Backport ErrorHeader directive (regression from 1.3)
>             modules/metadata/mod_headers.c: r1.44, 1.45, 1.51
>           +1: nd, trawick
>   +       0: bnicholes 
>   +             ErrorHeader seems to be confusing since the defined header
>   +	     appears for both successful as well as error responses.  Maybe
>   +	     the directive should be renamed or a "persist" option added
>   +	     to the Header directive that allows a standard header definition
>   +	     to appear for all response types.

Well. Alternative suggestion:
Instead of the ErrorHeader directive we use the attributes "onsuccess" and
"always" for Header (starting with 2.0), like:

# was ErrorHeader:
Header always set name value

# was Header:
# (onsuccess attribute is optional and default, so there's no compat issue)
Header onsuccess set name value

A patch against 2.1 is attached. What do you think?

nd
-- 
Already I've seen people (really!) write web URLs in the form:
http:\\some.site.somewhere
[...] How soon until greengrocers start writing "apples $1\pound"
or something?                           -- Joona I Palaste in clc

Re: Drop ErrorHeader -> extend Header

Posted by André Malo <nd...@perlig.de>.
* André Malo <nd...@perlig.de> wrote:

> A patch against 2.1 is attached. What do you think?

...

nd
-- 
>I have tried using ErrorDocument 401, but doesn't work.
                                           ^^^^^^^^^^^^^
Oh dear.  What does it do - lounge around on the couch all day drinking
beer and watching TV?            -- "Kash" und Alan J. Flavell in ciwsu