httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bri...@apache.org
Subject svn commit: r832901 - /httpd/httpd/trunk/modules/lua/lua_request.c
Date Wed, 04 Nov 2009 23:22:16 GMT
Author: brianm
Date: Wed Nov  4 23:22:15 2009
New Revision: 832901

URL: http://svn.apache.org/viewvc?rev=832901&view=rev
Log:
map r->err_headers_out into lua

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=832901&r1=832900&r2=832901&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/lua/lua_request.c (original)
+++ httpd/httpd/trunk/modules/lua/lua_request.c Wed Nov  4 23:22:15 2009
@@ -314,6 +314,10 @@
     return r->headers_out;
 }
 
+static apr_table_t* req_err_headers_out(request_rec *r)
+{
+  return r->err_headers_out;
+}
 
 /* END dispatch mathods for request_rec fields */
 
@@ -577,13 +581,13 @@
                  makefun(&req_the_request_field, APL_REQ_FUNTYPE_STRING, p));
     apr_hash_set(dispatch, "method", APR_HASH_KEY_STRING,
                  makefun(&req_method_field, APL_REQ_FUNTYPE_STRING, p));
-
     apr_hash_set(dispatch, "headers_in", APR_HASH_KEY_STRING,
                  makefun(&req_headers_in, APL_REQ_FUNTYPE_TABLE, p));
-
     apr_hash_set(dispatch, "headers_out", APR_HASH_KEY_STRING,
                  makefun(&req_headers_out, APL_REQ_FUNTYPE_TABLE, p));
-
+    apr_hash_set(dispatch, "err_headers_out", APR_HASH_KEY_STRING,
+                 makefun(&req_err_headers_out, APL_REQ_FUNTYPE_TABLE, p));
+    
 
     lua_pushlightuserdata(L, dispatch);
     lua_setfield(L, LUA_REGISTRYINDEX, "Apache2.Request.dispatch");



Mime
View raw message