httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From humbed...@apache.org
Subject svn commit: r1567434 - /httpd/httpd/trunk/modules/lua/lua_request.c
Date Tue, 11 Feb 2014 22:51:20 GMT
Author: humbedooh
Date: Tue Feb 11 22:51:20 2014
New Revision: 1567434

URL: http://svn.apache.org/r1567434
Log:
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)

Modified:
    httpd/httpd/trunk/modules/lua/lua_request.c

Modified: httpd/httpd/trunk/modules/lua/lua_request.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1567434&r1=1567433&r2=1567434&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Tue Feb 11 22:51:20 2014
@@ -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;
 }
 



Mime
View raw message