1
0
mirror of https://github.com/lammertb/libhttp.git synced 2026-01-03 16:02:30 +03:00

Added mg_exec_lua_script, mg_prepare_lua_environment -> prepare_lua_environment

This commit is contained in:
Sergey Lyubka
2013-08-08 13:11:05 +01:00
parent 421c16b2bb
commit 743f48b8e0
2 changed files with 33 additions and 3 deletions

View File

@@ -554,7 +554,7 @@ static void test_lua(void) {
&conn.request_info);
conn.content_len = conn.data_len - conn.request_len;
mg_prepare_lua_environment(&conn, L);
prepare_lua_environment(&conn, L);
ASSERT(lua_gettop(L) == 0);
check_lua_expr(L, "'hi'", "hi");