]> granicus.if.org Git - apache/commitdiff
mod_lua: Fix r:setcookie() to add, rather than replace,
authorEric Covener <covener@apache.org>
Tue, 11 Feb 2014 16:57:07 +0000 (16:57 +0000)
committerEric Covener <covener@apache.org>
Tue, 11 Feb 2014 16:57:07 +0000 (16:57 +0000)
the Set-Cookie header. PR56105

Submitted By: Kevin J Walters <kjw ms com>, Edward Lu <Chaosed0 gmail com>
Committed By: covener

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1567221 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/lua/lua_request.c

diff --git a/CHANGES b/CHANGES
index b74e8b32cf1b9596907ec944a3e2854d643aa865..f432db8081e72ab987277e6496d5e976b96331ba 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,5 +1,9 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache 2.5.0
+  *) mod_lua: Fix r:setcookie() to add, rather than replace,
+     the Set-Cookie header. PR56105
+     [Kevin J Walters <kjw ms com>, Edward Lu <Chaosed0 gmail com>]
 
   *) mod_proxy_fcgi: Fix error message when an unexpected protocol version
      number is received from the application.  PR 56110.  [Jeff Trawick]
index 33b91e2d5e272d7073871ce042357c123b030439..0c19cef35193f3ca3d4c749535b57be959e05a95 100644 (file)
@@ -1987,7 +1987,7 @@ static int lua_set_cookie(lua_State *L)
         }
     }
     out = apr_psprintf(r->pool, "%s=%s; %s %s", key, value, secure ? "Secure;" : "", expires ? strexpires : "");
-    apr_table_set(r->headers_out, "Set-Cookie", out);
+    apr_table_add(r->headers_out, "Set-Cookie", out);
     return 0;
 }