1
0
mirror of https://github.com/apache/httpd.git synced 2025-07-29 09:01:18 +03:00
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1342158 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Gruno
2012-05-24 07:04:48 +00:00
parent 43ccb0bcf3
commit 8c151fb1a2
3 changed files with 4 additions and 4 deletions

View File

@ -138,11 +138,11 @@ function handle(r)
if r.method == 'GET' then
for k, v in pairs( r:parseargs() ) do
r:puts( string.format("%s: %s", k, v) )
r:puts( string.format("%s: %s\n", k, v) )
end
elseif r.method == 'POST' then
for k, v in pairs( r:parsebody() ) do
r:puts( string.format("%s: %s", k, v) )
r:puts( string.format("%s: %s\n", k, v) )
end
else
r:puts("unknown HTTP method " .. r.method)