summaryrefslogtreecommitdiffstats
path: root/src/civetweb/test/ajax/echo.lp
diff options
context:
space:
mode:
Diffstat (limited to 'src/civetweb/test/ajax/echo.lp')
-rw-r--r--src/civetweb/test/ajax/echo.lp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/civetweb/test/ajax/echo.lp b/src/civetweb/test/ajax/echo.lp
new file mode 100644
index 00000000..7276f813
--- /dev/null
+++ b/src/civetweb/test/ajax/echo.lp
@@ -0,0 +1,9 @@
+<?
+-- This *.lp file simply runs the *.lua file in the same directory.
+n = string.match(mg.request_info.uri, "^(.*)%.lp$")
+if mg.system:find("Windows") then
+ n = string.gsub(n, [[/]], [[\]])
+end
+n = mg.document_root .. n .. ".lua"
+dofile(n)
+?> \ No newline at end of file