]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix typo spotted in comment in online doc. [comment #4454)
authorChristophe Jaillet <jailletc36@apache.org>
Sat, 5 Sep 2015 06:34:02 +0000 (06:34 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sat, 5 Sep 2015 06:34:02 +0000 (06:34 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1701349 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/developer/lua.xml
docs/manual/mod/mod_lua.xml

index 687071598737defaffe1cc11bf519ece75f3e17f..3cd23374d801332618df311d8cbf60737f5242f8 100644 (file)
@@ -76,7 +76,7 @@ that every call to a Lua script will spawn a new Lua state that handles that
 script and is destroyed immediately after. This option keeps the memory
 footprint of mod_lua low, but also affects the processing speed of a request.
 If you have the memory to spare, you can set the scope to <code>thread</code>,
-which will make mod_lua spawn a Lua state that lasts the entirity of a thread's
+which will make mod_lua spawn a Lua state that lasts the entirety of a thread's
 lifetime, speeding up request processing by 2-3 times. Since mod_lua will create
 a state for each script, this may be an expensive move, memory-wise, so to
 compromise between speed and memory usage, you can choose the <code>server</code>
@@ -218,7 +218,7 @@ function remap(r)
     -- browse through the rewrite map
     for key, entry in pairs(map) do
         -- Match source regex against URI
-        local match = apache2.regex(r, entry.source, r.uri) then
+        local match = r:regex(entry.source, r.uri) then
         if match and match[0] then
             r.filename = interpolateString(entry.destination, match)
             -- Is this a proxied remap?
index 05e50cb1975090770ac84cdb1836949c760e319b..d6451f9c089ca55e6de20a8ea0856f949c6e838b 100644 (file)
@@ -126,7 +126,7 @@ function handle(r)
 -- use our own Error contents
         r:puts("Unsupported HTTP method " .. r.method)
         r.status = 405
-        return apache2.ok
+        return apache2.OK
     else
 -- use the ErrorDocument
         return 501