From: Daniel Gruno Date: Tue, 11 Feb 2014 22:51:20 +0000 (+0000) Subject: use err_headers_out for setting cookies instead of headers_out, so they persist on... X-Git-Tag: 2.5.0-alpha~4492 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d915069131f68aec5f74bbacba79a4892bc8018;p=apache use err_headers_out for setting cookies instead of headers_out, so they persist on non-2xx/3xx statuses (Thanks to Joe Schaefer for this) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1567434 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/lua/lua_request.c b/modules/lua/lua_request.c index 43de56241d..f2fa055cde 100644 --- a/modules/lua/lua_request.c +++ b/modules/lua/lua_request.c @@ -2061,7 +2061,7 @@ static int lua_set_cookie(lua_State *L) strlen(strdomain) ? strdomain : "", strlen(strpath) ? strpath : ""); - apr_table_add(r->headers_out, "Set-Cookie", out); + apr_table_add(r->err_headers_out, "Set-Cookie", out); return 0; }