From 05031ad147604e1408c6b73357cf3f539f57a0d8 Mon Sep 17 00:00:00 2001 From: pixel Date: Wed, 23 May 2007 13:06:58 +0000 Subject: LuaHttp is now switching itself to an LuaTask. And fixed a small stack bug. --- lib/LuaHttp.cc | 5 +++-- 1 file 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; -- cgit v1.2.3