Fix header return value from HTTPRequest:finish, now returns both name and value again
This commit is contained in:
parent
25c65310bd
commit
5a762524b8
@ -223,7 +223,7 @@ static int http_request_finish(lua_State *l)
|
||||
lua_pushlstring(l, headers[i].name.data(), headers[i].name.size());
|
||||
lua_rawseti(l, -2, 1);
|
||||
lua_pushlstring(l, headers[i].value.data(), headers[i].value.size());
|
||||
lua_rawseti(l, -2, 1);
|
||||
lua_rawseti(l, -2, 2);
|
||||
lua_rawseti(l, -2, i + 1);
|
||||
}
|
||||
return 3;
|
||||
|
Loading…
Reference in New Issue
Block a user