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-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9973ee55ea8530ebe26962b5066a208374188b0;p=thirdparty%2Fapache%2Fhttpd.git 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 43de56241d0..f2fa055cded 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; }