]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Update.
authorLucien Gentis <lgentis@apache.org>
Sat, 8 Jun 2013 15:37:02 +0000 (15:37 +0000)
committerLucien Gentis <lgentis@apache.org>
Sat, 8 Jun 2013 15:37:02 +0000 (15:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491002 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_lua.xml.fr

index 84704645bad27399a9d778ea7135f6cedfb870b5..8d1637eec2bf61cd82d098c11dd11a109f751637 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:1490095 (outdated) -->
+<!-- English Revision : 1490095 -->
 <!-- French translation : Lucien GENTIS -->
 <!-- Reviewed by : Vincent Deffontaines -->
 
@@ -116,19 +116,28 @@ 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
+-- message d'erreur personnalis&eacute;
         r:puts("Unsupported HTTP method " .. r.method)
+       r.status = 405
+        return apache2.ok
+    else
+-- message d'erreur ErrorDocument
+        return 501
     end
+    return apache2.OK
 end
 </highlight>