cleanup request

This commit is contained in:
MihailRis 2026-09-13 17:55:12 +03:00
parent 58c974a3a1
commit 432687c6ab
3 changed files with 22 additions and 49 deletions

View file

@ -125,16 +125,6 @@ static int l_request(lua::State* L, network::Network& network) {
std::move(response.body)}
));
};
request.onReject = [currentRequestId](network::HttpResponse response) {
push_event(NetworkEvent(
RESPONSE,
ResponseEventDto {
response.status,
false,
currentRequestId,
std::move(response.body)}
));
};
network.request(std::move(request));
return lua::pushinteger(L, currentRequestId);