]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/test/page7.lua
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / prometheus-cpp / 3rdparty / civetweb / test / page7.lua
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/test/page7.lua b/ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/test/page7.lua
new file mode 100644 (file)
index 0000000..b8914ef
--- /dev/null
@@ -0,0 +1,10 @@
+-- reflect the request information as JSON\r
+json = require "json"\r
+\r
+response = json.encode(mg.request_info)\r
+\r
+mg.response.status = 200\r
+mg.response.http_headers["Content-Type"] = "application/json; charset=utf-8";\r
+mg.response.http_headers["Content-Length"] = #response;\r
+mg.response.send()\r
+mg.write(response)\r