1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

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/trunk@1567221 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Eric Covener
2014-02-11 16:57:07 +00:00
parent 790889c636
commit 92be81f133
2 changed files with 5 additions and 1 deletions

View 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;
}