From 87ff011f6a2b360d537c5da9a6ad42c42b8f85f2 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 14 Nov 2019 08:39:46 +0000 Subject: Also avoid adding the Set-Cookie header in both r->headers_out and r->err_headers_out in ap_cookie_remove and ap_cookie_remove2 functions to avoid duplication in HTTP response. (Follow-up to r1843244) Closes #73 PR: 60910 Submitted by: Lubos Uhliarik git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869785 13f79535-47bb-0310-9956-ffa450edef68 --- modules/session/mod_session_cookie.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/session') diff --git a/modules/session/mod_session_cookie.c b/modules/session/mod_session_cookie.c index 36168b7ead..25ca16e242 100644 --- a/modules/session/mod_session_cookie.c +++ b/modules/session/mod_session_cookie.c @@ -68,7 +68,7 @@ static apr_status_t session_cookie_save(request_rec * r, session_rec * z) NULL); } else { - ap_cookie_remove(r, conf->name, conf->name_attrs, r->headers_out, + ap_cookie_remove(r, conf->name, conf->name_attrs, r->err_headers_out, NULL); } } @@ -82,7 +82,7 @@ static apr_status_t session_cookie_save(request_rec * r, session_rec * z) } else { ap_cookie_remove2(r, conf->name2, conf->name2_attrs, - r->headers_out, r->err_headers_out, NULL); + r->err_headers_out, NULL); } } -- cgit v1.2.3