mirror of
https://github.com/apache/httpd.git
synced 2025-08-05 16:55:50 +03:00
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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user