minor bugfix

This commit is contained in:
Robin Malley 2020-05-18 10:41:27 -04:00
parent 37e1b0a6c0
commit a5293ae7a6
2 changed files with 3 additions and 2 deletions

View File

@ -310,9 +310,9 @@ load_kore_libs(lua_State *L){
LUA_PUSH_CONST(L,LOG_INFO); LUA_PUSH_CONST(L,LOG_INFO);
LUA_PUSH_CONST(L,LOG_DEBUG); LUA_PUSH_CONST(L,LOG_DEBUG);
#ifdef BUILD_PROD #ifdef BUILD_PROD
lua_pushboolean(1); lua_pushboolean(L,1);
#else #else
lua_pushboolean(0); lua_pushboolean(L,0);
#endif #endif
lua_setfield(L,-2,"PRODUCTION"); lua_setfield(L,-2,"PRODUCTION");
lua_pop(L,1); lua_pop(L,1);

View File

@ -13,5 +13,6 @@ int lhttp_request_get_ip(lua_State *L);
int lhttp_populate_cookies(lua_State *L); int lhttp_populate_cookies(lua_State *L);
int lhttp_file_get(lua_State *L); int lhttp_file_get(lua_State *L);
int lhttp_populate_multipart_form(lua_State *L); int lhttp_populate_multipart_form(lua_State *L);
int lkore_log(lua_State *L);
void load_kore_libs(lua_State *L); void load_kore_libs(lua_State *L);
struct http_request* luaL_checkrequest(lua_State *L, int pos); struct http_request* luaL_checkrequest(lua_State *L, int pos);