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
parent
92bf3e9d
Please register or sign in to comment