Return-Path: Delivered-To: apache-bugdb-archive@hyperreal.org Received: (qmail 20311 invoked by uid 6000); 15 Jul 1998 17:50:08 -0000 Received: (qmail 20237 invoked by uid 2001); 15 Jul 1998 17:50:00 -0000 Date: 15 Jul 1998 17:50:00 -0000 Message-ID: <19980715175000.20236.qmail@hyperreal.org> To: apache-bugdb@apache.org Cc: apache-bugdb@apache.org, From: Aaron Gowatch Subject: Re: general/2615: Set-Cookie not sent with Redirect response headers Reply-To: Aaron Gowatch Sender: apache-bugdb-owner@apache.org Precedence: bulk The following reply was made to PR general/2615; it has been noted by GNATS. From: Aaron Gowatch 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);