浏览代码

Using .lp extension for Lua server pages

Sergey Lyubka 12 年之前
父节点
当前提交
e251375c0c
共有 2 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      mongoose.c
  2. 0 0
      test/page.lp

+ 1 - 1
mongoose.c

@@ -4100,7 +4100,7 @@ static void handle_request(struct mg_connection *conn) {
           "Directory listing denied");
     }
 #ifdef USE_LUA
-  } else if (match_prefix("**.lsp$", 7, path) > 0) {
+  } else if (match_prefix("**.lp$", 6, path) > 0) {
     handle_lsp_request(conn, path, &file);
 #endif
 #if !defined(NO_CGI)

+ 0 - 0
test/page.lsp → test/page.lp