diff options
Diffstat (limited to 'src/civetweb/test/ajax/echo.lp')
-rw-r--r-- | src/civetweb/test/ajax/echo.lp | 9 |
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 |