]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Scratch another its - this patchs allows me to hugely simply auth modules
authorDirk-Willem van Gulik <dirkx@apache.org>
Wed, 25 Sep 2002 23:22:34 +0000 (23:22 +0000)
committerDirk-Willem van Gulik <dirkx@apache.org>
Wed, 25 Sep 2002 23:22:34 +0000 (23:22 +0000)
commitb709c1a701eedf0cddf024860ef922833348f905
treea637d3b887c104c1ea25888a531e74509691674e
parenta599f31a1cf65d1c939a836750ad6f1ece8c7526
Scratch another its - this patchs allows me to hugely simply auth modules
which use non 4xx methods for auth (such as cookies, referers ,etc).

Submitted by Sander van Zoest (for a slightly different reason) - see
explanation below.

From: Sander van Zoest
To: dev@httpd.apache.org

It is common practice to set Cookie's to pass along on HTTP
redirects for "login" authentication.

When implementing P3P <http://www.w3.org/P3P/> using
mod_headers.c the Header directive only sets r->headers_out
and does not pass the headers along for non-2XX responses
such as error pages and redirects.

To provide this functionality we added the ErrorHeader
directive which populates r->err_headers_out instead.

Below follows a patch for 1.3.X by Michael Radwin <radwin_at_yahoo-inc.com>.

I have some code that attempts to add Directive to 2.0.X, but
it seems that output_filters are shortcuted on 3XX responses.
While now by setting the Header directive it also passes the headers
along at for all non-2XX responses except 3XX responses.

Cheers,

--
Sander van Zoest

PR: 9181
Obtained from: Michael Radwin
Submitted by: Sander van Zoest
Reviewed by: Dirk-Willem van Gulik

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3.x@96981 13f79535-47bb-0310-9956-ffa450edef68
src/CHANGES
src/modules/standard/mod_headers.c