aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorame <[email protected]>2025-06-14 00:11:36 -0500
committerame <[email protected]>2025-06-14 00:11:36 -0500
commita6ef270ed5d1224f72fb5f08e687b6aec572a2b5 (patch)
tree6e7c31951d5054fca1ca7a22828d7bb63b5c11d5 /src/net.h
parent2efda12fcae7869bc3cc8782dbcaceae65d251f8 (diff)
fix config using strings
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 8c36057..f7e5d64 100644
--- a/src/net.h
+++ b/src/net.h
@@ -53,8 +53,9 @@ static const luaL_Reg net_function_list [] = {
};
extern char* _mimetypes;
+extern uint64_t _mimetypes_len;
static struct config net_config[] = {
- {.name = "mimetypes", .type = c_string, .value = {.c_string = &_mimetypes}},
+ {.name = "mimetypes", .type = c_string, .value = {.c_string = &_mimetypes, .len = &_mimetypes_len}},
{.type = c_none}
};