From: Eric Covener Date: Wed, 29 Dec 2010 03:33:38 +0000 (+0000) Subject: Merge r1053523 from trunk: X-Git-Tag: 2.2.18~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da856e28f9c10240748358af0e666b783ab51e20;p=thirdparty%2Fapache%2Fhttpd.git Merge r1053523 from trunk: PR50525: Header always ... doesn't really mean "always" in terms of what you can edit/merge/append/set since it only looks at r->err_headers_out and the initial value may have lived in r->headers_out. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1053524 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_headers.xml b/docs/manual/mod/mod_headers.xml index 2d94333abfa..a9d8cfdb56c 100644 --- a/docs/manual/mod/mod_headers.xml +++ b/docs/manual/mod/mod_headers.xml @@ -298,18 +298,32 @@ headers and output filters are run, allowing outgoing headers to be modified.

-

By default, this directive only affects successful responses (responses - in the 2xx range). The optional condition - can be either onsuccess (default) or always (all - status codes, including successful responses). A value of always - may be needed to influence headers set by some internal modules even for - successful responses, and is always needed to affect non-2xx - responses such as redirects or client errors.

- - CGI -

To manipulate headers set by CGI scripts, it is necessary to specify - always for the first parameter.

-
+

The optional condition argument determines which internal + table of responses headers this directive will operate against. Other + components of the server may have stored their response headers in either + the table that corresponds to onsuccess or the table that + corresponds to always. "Always" in this context refers to + whether headers you add will be sent during both a successful and unsucessful + response, but if your action is a function of an existing header, you + will have to read on for further complications.

+ +

The default value of onsuccess may need to be changed to + always under the circumstances similar to those listed below + Note also that repeating this directive with both conditions makes sense in + some scenarios because always is not a superset of + onsuccess with respect to existing headers:

+ +

The action it performs is determined by the first argument (second argument if a condition is specified).