Skip to content
Browse files

use err_headers_out for setting cookies instead of headers_out, so th…

…ey 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
  • Loading branch information...
1 parent 66e2905 commit e9973ee55ea8530ebe26962b5066a208374188b0 @Humbedooh Humbedooh committed Feb 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 modules/lua/lua_request.c
View
2 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;
}

0 comments on commit e9973ee

Please sign in to comment.
Something went wrong with that request. Please try again.