diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LuaHttp.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index b57b8e8..c746bff 100644 --- a/lib/LuaHttp.cc +++ b/lib/LuaHttp.cc @@ -1,6 +1,7 @@ #include "Domain.h" #include "LuaHttp.h" #include "LuaHandle.h" +#include "LuaTask.h" #define export_enum(L, n) \ L->push(#n); \ @@ -145,6 +146,7 @@ class LuaDomain : public Domain { L->gettable(LUA_REGISTRYINDEX); L->push((lua_Number) id); L->gettable(); + L->remove(); L->newtable(); @@ -189,8 +191,7 @@ class LuaDomain : public Domain { LuaHttpResponse r(res); r.push(L); - L->call(2, 0); - + res->builder = new LuaTask(L, 2); } private: Lua * L; |