diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2021-11-21 15:07:17 -0800 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2021-11-21 15:07:42 -0800 |
commit | 3b44b9827d5e9c6554c5600c45d832d4e6eb50f8 (patch) | |
tree | e2fc984be141e2e4fa18fceae6c73814d23c5646 /src/luasocket/mime.c | |
parent | f7ab5dd291f302c0fb97a2be0a11a06ed2bb6661 (diff) | |
download | teliva-3b44b9827d5e9c6554c5600c45d832d4e6eb50f8.tar.gz |
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.
Diffstat (limited to 'src/luasocket/mime.c')
-rw-r--r-- | src/luasocket/mime.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); |