summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpixel <pixel>2007-05-23 13:06:58 +0000
committerpixel <pixel>2007-05-23 13:06:58 +0000
commit05031ad147604e1408c6b73357cf3f539f57a0d8 (patch)
treed711eca95992077000cbed7ce6f4b3af9c9f558b
parent0090125ad36fe82d7df317cd41c838f30f4e9cf5 (diff)
LuaHttp is now switching itself to an LuaTask. And fixed a small stack
bug.
-rw-r--r--lib/LuaHttp.cc5
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;