mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-22 07:53:00 +02:00
Fix header return value from HTTPRequest:finish, now returns both name and value again
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user