From fd094b5b1e39e959353bfb43676d06d2ad0204f6 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sat, 21 Sep 2002 15:42:33 +0000 Subject: [PATCH] Fixed bug #15038, original patch by: phpman@toowards.com --- sapi/apache/mod_php4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sapi/apache/mod_php4.c b/sapi/apache/mod_php4.c index bbc95fb7ed..59732fd860 100644 --- a/sapi/apache/mod_php4.c +++ b/sapi/apache/mod_php4.c @@ -186,8 +186,10 @@ static int sapi_apache_header_handler(sapi_header_struct *sapi_header, sapi_head r->content_type = pstrdup(r->pool, header_content); } else if (!strcasecmp(header_name, "Set-Cookie")) { table_add(r->headers_out, header_name, header_content); - } else { + } else if (sapi_header->replace) { table_set(r->headers_out, header_name, header_content); + } else { + table_add(r->headers_out, header_name, header_content); } *p = ':'; /* a well behaved header handler shouldn't change its original arguments */ -- 2.50.1