]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Also avoid adding the Set-Cookie header in both r->headers_out and
authorJoe Orton <jorton@apache.org>
Thu, 14 Nov 2019 08:39:46 +0000 (08:39 +0000)
committerJoe Orton <jorton@apache.org>
Thu, 14 Nov 2019 08:39:46 +0000 (08:39 +0000)
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

modules/session/mod_session_cookie.c

index 36168b7ead7727826e65b184b16285b7f63b7a39..25ca16e242484d02e0994ab29ad13a128aba0b6f 100644 (file)
@@ -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);
         }
     }