From 3b44b9827d5e9c6554c5600c45d832d4e6eb50f8 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sun, 21 Nov 2021 15:07:17 -0800 Subject: basic http requests starting to work In the process we're starting to load almost all of luasocket by default. And everything is working as expected, no unpleasant surprises. --- src/luasocket/mime.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/luasocket/mime.c') diff --git a/src/luasocket/mime.c b/src/luasocket/mime.c index 6c210e4..8935df0 100644 --- a/src/luasocket/mime.c +++ b/src/luasocket/mime.c @@ -171,6 +171,8 @@ LUASOCKET_API int luaopen_mime_core(lua_State *L) { lua_newtable(L); luaL_setfuncs(L, func, 0); + lua_pushvalue(L, -1); + lua_setglobal(L, "mime"); /* make version string available to scripts */ lua_pushstring(L, "_VERSION"); lua_pushstring(L, MIME_VERSION); -- cgit 1.4.1-2-gfad0