diff options
| author | ame <[email protected]> | 2025-06-12 13:57:51 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2025-06-12 13:57:51 -0500 |
| commit | fe09d3576ada9918f55431298c5d9a099e690761 (patch) | |
| tree | 32fc93c956154a0cdc6a760f3acca1263d4feb2a /src/net.h | |
| parent | 8e7257aac8b30aaa57577770fd636e784361e35d (diff) | |
rewrite mimetype parsing
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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}
};
|
