summaryrefslogtreecommitdiff
path: root/lib/LuaHttp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/LuaHttp.cc')
-rw-r--r--lib/LuaHttp.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/LuaHttp.cc b/lib/LuaHttp.cc
index 645d303..59ff7e6 100644
--- a/lib/LuaHttp.cc
+++ b/lib/LuaHttp.cc
@@ -305,7 +305,7 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller)
dec_t = dec.to_charp();
L->push(Base64::encode(dec_t, dec.strlen()));
} else {
- Handle * hdata = (Handle *) LuaObject::getme(L, 1);
+ Handle * hdata = L->recast<Handle>(1)
int size = hdata->GetSize();
char * data = (char *) malloc(size);
hdata->read(data, size);
@@ -338,7 +338,7 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller)
h.Update(dec);
L->push(h.Finish());
} else {
- Handle * hdata = (Handle *) LuaObject::getme(L, 1);
+ Handle * hdata = L->recast<Handle>(1)
MD5 h;
h.Update(hdata);
L->push(h.Finish());
@@ -352,7 +352,7 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller)
h.Update(dec);
L->push(h.Finish());
} else {
- Handle * hdata = (Handle *) LuaObject::getme(L, 1);
+ Handle * hdata = L->recast<Handle>(1)
SHA1 h;
h.Update(hdata);
L->push(h.Finish());
@@ -366,7 +366,7 @@ int sLua_HttpResponse::HttpResponse_proceed_statics(Lua * L, int n, int caller)
h.Update(dec);
L->push(h.Finish());
} else {
- Handle * hdata = (Handle *) LuaObject::getme(L, 1);
+ Handle * hdata = L->recast<Handle>(1)
SHA256 h;
h.Update(hdata);
L->push(h.Finish());