diff options
Diffstat (limited to 'lib/LuaHttp.cc')
-rw-r--r-- | lib/LuaHttp.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index 0b9cc22..b57b8e8 100644 --- a/lib/LuaHttp.cc +++ b/lib/LuaHttp.cc @@ -134,7 +134,7 @@ class LuaDomain : public Domain { L->push("DOMAINS_KEYS"); L->gettable(LUA_REGISTRYINDEX); L->push((lua_Number) id); - L->copy(3); + L->copy(2); L->settable(); } virtual ~LuaDomain() { } @@ -212,7 +212,7 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller) r = 1; break; case HTTPRESPONSE_REGISTERDOMAIN: - new LuaDomain(L, L->tostring(2)); + new LuaDomain(L, L->tostring(1)); } return r; |