summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/LuaHttp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc
index 80f843b..59ff7e6 100644
--- a/lib/LuaHttp.cc
+++ b/lib/LuaHttp.cc
@@ -326,7 +326,7 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller)
Handle * out = lua_recast<Handle>(L, 2);
if (!out)
L->error("Need an output handle to Base64DecodeBin");
- enc_t = (char *) Base64::decode(L->tostring(), &l);
+ enc_t = (char *) Base64::decode(L->tostring(1), &l);
out->write(enc_t, l);
free(enc_t);
}