diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LuaHttp.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc index b9ad988..645d303 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); } |