Browse Source

Using .lp extension for Lua server pages

Sergey Lyubka 12 years ago
parent
commit
e251375c0c
2 changed files with 1 additions and 1 deletions
  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