]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/test/page6.lua
dc3043970a7bb8d90c1490c2830136d2dd941bfb
[ceph.git] / ceph / src / civetweb / test / page6.lua
1 mg.write("HTTP/1.0 200 OK\r\n")
2 mg.write("Content-Type: text/plain\r\n")
3 mg.write("\r\n")
4 mg.write(mg.request_info.request_method .. " " .. mg.request_info.request_uri .. " HTTP/" .. mg.request_info.http_version .. "\r\n")
5 for k,v in pairs(mg.request_info.http_headers) do
6 mg.write(k .. ": " .. v .. "\r\n")
7 end
8 mg.write("\r\n")
9
10 repeat
11 local r = mg.read()
12 if (r) then
13 mg.write(r)
14 end
15 until not r
16