set the docroot to the current working directory if none is specified, fixes random...
[project/uhttpd.git] / lua.c
diff --git a/lua.c b/lua.c
index 6bf5c24..c6f27e9 100644 (file)
--- a/lua.c
+++ b/lua.c
@@ -280,6 +280,7 @@ static bool check_lua_url(const char *url)
 }
 
 static struct dispatch_handler lua_dispatch = {
+       .script = true,
        .check_url = check_lua_url,
        .handle_request = lua_handle_request,
 };