From fe09d3576ada9918f55431298c5d9a099e690761 Mon Sep 17 00:00:00 2001 From: ame Date: Thu, 12 Jun 2025 13:57:51 -0500 Subject: rewrite mimetype parsing --- src/net.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index ac5c6b7..8c36057 100644 --- a/src/net.h +++ b/src/net.h @@ -41,6 +41,8 @@ int start_serv(lua_State* L, int port); // static char* http_codes[600] = {0}; +int clean_lullaby_net(lua_State* L); + static const luaL_Reg net_function_list [] = { {"listen",l_listen}, //{"request",l_request}, @@ -50,6 +52,9 @@ static const luaL_Reg net_function_list [] = { {NULL,NULL} }; +extern char* _mimetypes; + static struct config net_config[] = { + {.name = "mimetypes", .type = c_string, .value = {.c_string = &_mimetypes}}, {.type = c_none} }; -- cgit v1.2.3