Commit 05920b01 authored by Christophe Jaillet's avatar Christophe Jaillet
Browse files

Fix comment in mod_lua and docs.

s/addoutputfilter/add_output_filter/
See PR 62359
(r1837404 on trunk)

Note: .c file is patch without any vote because it is only a comment in order to be consistent with the doc and the code, and mod_lua is marked as experimental.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1837405 13f79535-47bb-0310-9956-ffa450edef68
parent f8a53ec4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -643,9 +643,9 @@ end
</highlight>

<highlight language="lua">
r:addoutputfilter(name|function) -- add an output filter:
r:add_output_filter(filter_name) -- add an output filter:

r:addoutputfilter("fooFilter") -- add the fooFilter to the output stream
r:add_output_filter("fooFilter") -- add the fooFilter to the output stream
</highlight>

<highlight language="lua">
+1 −1
Original line number Diff line number Diff line
@@ -490,7 +490,7 @@ static int req_write(lua_State *L)
    return 1;
}

/* r:addoutputfilter(name|function) */
/* r:add_output_filter(name) */
static int req_add_output_filter(lua_State *L)
{
    request_rec *r = ap_lua_check_request_rec(L, 1);