www-apache-bugdb mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Gowatch <aar...@divinia.com>
Subject Re: general/2615: Set-Cookie not sent with Redirect response headers
Date Wed, 15 Jul 1998 17:50:00 GMT
The following reply was made to PR general/2615; it has been noted by GNATS.

From: Aaron Gowatch <aarong@divinia.com>
To: apbugs@hyperreal.org, apache-bugdb@apache.org
Cc:  Subject: Re: general/2615: Set-Cookie not sent with Redirect response
 headers
Date: Wed, 15 Jul 1998 10:40:29 -0700 (PDT)

 It turns out that the patch that I submitted with the PR works fine when
 there is only one Set-Cookie in r->headers_out.  This patch should fix it:
 
 
 --- src/main/http_protocol.c	Wed May 27 15:55:59 1998
 +++ /home/aarong/development/Software/Webservers/Apache/src/main/http_protocol.c	Wed Jul
15 10:36:10 1998
 @@ -1990,6 +1990,12 @@
           * that may have been set by the request handler before the
           * error or redirect, except for Location on external redirects.
           */
 +
 +	 ap_table_do((int (*)(void *, const char *, const char *)) ap_table_addn,
 +		    (void *) r->err_headers_out, r->headers_out,
 +		    "Set-Cookie",
 +		    NULL);
 +
          r->headers_out = r->err_headers_out;
          r->err_headers_out = tmp;
          ap_clear_table(r->err_headers_out);
 
 

Mime
View raw message