]> granicus.if.org Git - apache/commitdiff
Fix comment in mod_lua and docs.
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 4 Aug 2018 07:47:47 +0000 (07:47 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 4 Aug 2018 07:47:47 +0000 (07:47 +0000)
s/addoutputfilter/add_output_filter/
See PR 62359

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1837404 13f79535-47bb-0310-9956-ffa450edef68

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

index 4d30ced7a9a0aa4c3e4f23cc7d9e7c9d712a1cfc..b877335e04cacaf4efb67fba37f3e436b71ca4c5 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 7a901fd7ff75334f3603b882ba351f12fb9d5214..85031050147cba0a8c7b376f0bcc200745767a6e 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);