]> granicus.if.org Git - apache/commitdiff
Fix comment in mod_lua and docs.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 4 Aug 2018 08:09:54 +0000 (08:09 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 4 Aug 2018 08:09:54 +0000 (08:09 +0000)
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

docs/manual/mod/mod_lua.xml
modules/lua/lua_request.c

index 5ff9c11a9bed00a69ff4c8ead17142ba93ac760f..8a647a576412e040897be3ea62f7c6fe57eee808 100644 (file)
@@ -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">
index f9f9ae640a3ee4f368691f52e844b54e5d0f6247..3e1d2ed804c84e536518fed4f2d243e42427ef78 100644 (file)
@@ -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);