]> granicus.if.org Git - apache/commitdiff
Merge r1567221 from trunk:
authorEric Covener <covener@apache.org>
Tue, 11 Feb 2014 19:35:52 +0000 (19:35 +0000)
committerEric Covener <covener@apache.org>
Tue, 11 Feb 2014 19:35:52 +0000 (19:35 +0000)
mod_lua: Fix r:setcookie() to add, rather than replace,
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/branches/2.4.x@1567328 13f79535-47bb-0310-9956-ffa450edef68

CHANGES
modules/lua/lua_request.c

diff --git a/CHANGES b/CHANGES
index 8692db89d5409e88883f91217904bfe556b1aed4..96f77a0ca26f4036532d31d124c7438159b8002d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -2,6 +2,10 @@
 
 Changes with Apache 2.4.8
 
+  *) 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_rewrite: Add %{CONN_REMOTE_ADDR} as the non-useragent counterpart to
      %{REMOTE_ADDR}. PR 56094. [Edward Lu <Chaosed0 gmail com>]
 
index 252df42e84e76c059f8f9e6ccb495580a81f0e84..9d2628eb52165fdcd11277892195a2ccfb6f527c 100644 (file)
@@ -1983,7 +1983,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;
 }