mirror of
https://github.com/ctruLua/ctruLua.git
synced 2025-10-27 16:39:29 +00:00
Updated httpc to latest ctrulib
This commit is contained in:
parent
61a8987feb
commit
68a44645f7
1 changed files with 27 additions and 28 deletions
|
|
@ -126,7 +126,7 @@ static int httpc_getStatusCode(lua_State *L) {
|
|||
httpcContext *context = lua_touserdata(L, 1);
|
||||
u32 statusCode = 0;
|
||||
|
||||
Result ret = httpcGetResponseStatusCode(context, &statusCode, 0);
|
||||
Result ret = httpcGetResponseStatusCode(context, &statusCode);
|
||||
if (ret != 0) {
|
||||
lua_pushnil(L);
|
||||
lua_pushinteger(L, ret);
|
||||
|
|
@ -161,7 +161,7 @@ Download and return the data of the context.
|
|||
static int httpc_downloadData(lua_State *L) {
|
||||
httpcContext *context = lua_touserdata(L, 1);
|
||||
u32 status = 0;
|
||||
Result ret = httpcGetResponseStatusCode(context, &status, 0);
|
||||
Result ret = httpcGetResponseStatusCode(context, &status);
|
||||
if (ret != 0) {
|
||||
lua_pushnil(L);
|
||||
lua_pushinteger(L, ret);
|
||||
|
|
@ -339,4 +339,3 @@ void load_httpc_lib(lua_State *L) {
|
|||
void unload_httpc_lib(lua_State *L) {
|
||||
httpcExit();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue