summaryrefslogtreecommitdiffstats
path: root/modules/session
diff options
context:
space:
mode:
authorJoe Orton <jorton@apache.org>2019-11-14 09:39:46 +0100
committerJoe Orton <jorton@apache.org>2019-11-14 09:39:46 +0100
commit87ff011f6a2b360d537c5da9a6ad42c42b8f85f2 (patch)
treeeae3cb28a20c040e013e22f3d74953ff9291085a /modules/session
parent* Rebuild docs (diff)
downloadapache2-87ff011f6a2b360d537c5da9a6ad42c42b8f85f2.tar.xz
apache2-87ff011f6a2b360d537c5da9a6ad42c42b8f85f2.zip
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 <luhliari redhat.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1869785 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/session')
-rw-r--r--modules/session/mod_session_cookie.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}