Return-Path: Delivered-To: apmail-httpd-cvs-archive@www.apache.org Received: (qmail 11735 invoked from network); 4 Nov 2009 23:22:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Nov 2009 23:22:39 -0000 Received: (qmail 41516 invoked by uid 500); 4 Nov 2009 23:22:39 -0000 Delivered-To: apmail-httpd-cvs-archive@httpd.apache.org Received: (qmail 41434 invoked by uid 500); 4 Nov 2009 23:22:38 -0000 Mailing-List: contact cvs-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list cvs@httpd.apache.org Received: (qmail 41425 invoked by uid 99); 4 Nov 2009 23:22:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 23:22:38 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Nov 2009 23:22:36 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 28E4C2388874; Wed, 4 Nov 2009 23:22:16 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r832901 - /httpd/httpd/trunk/modules/lua/lua_request.c Date: Wed, 04 Nov 2009 23:22:16 -0000 To: cvs@httpd.apache.org From: brianm@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20091104232216.28E4C2388874@eris.apache.org> 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");