]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
xforms
authorEric Covener <covener@apache.org>
Thu, 6 Jun 2013 00:46:53 +0000 (00:46 +0000)
committerEric Covener <covener@apache.org>
Thu, 6 Jun 2013 00:46:53 +0000 (00:46 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490097 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.html.en
docs/manual/mod/mod_lua.xml.fr

index c002c262b4bf0cc87a6d4e7c99374575bbc3d82e..b6789f102e39d487dbcf2f1c95200cba9f21e223 100644 (file)
@@ -148,18 +148,24 @@ require "string"
 --]]
 function handle(r)
     r.content_type = "text/plain"
-    r:puts("Hello Lua World!\n")
 
     if r.method == 'GET' then
+        r:puts("Hello Lua World!\n")
         for k, v in pairs( r:parseargs() ) do
             r:puts( string.format("%s: %s\n", k, v) )
         end
     elseif r.method == 'POST' then
+        r:puts("Hello Lua World!\n")
         for k, v in pairs( r:parsebody() ) do
             r:puts( string.format("%s: %s\n", k, v) )
         end
-    else
+    elseif r.method == 'PUT' then
+-- use our own Error contents
         r:puts("Unsupported HTTP method " .. r.method)
+        r.status = 405
+        return apache2.ok
+    else
+-- use the ErrorDocument
         return 501
     end
     return apache2.OK
index e73bb012ad9e6b23df99d38d8cc4b81a03be00a3..84704645bad27399a9d778ea7135f6cedfb870b5 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
 <?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision: 1477000:1490091 (outdated) -->
+<!-- English Revision: 1477000:1490095 (outdated) -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->