mirror of
https://github.com/Ale32bit/Capy64.git
synced 2025-01-18 18:46:43 +00:00
HTTP Library parity to experimental-event branch
This commit is contained in:
parent
a0c3155f8c
commit
2e4d73e608
1 changed files with 1 additions and 4 deletions
|
@ -155,10 +155,7 @@ public class HTTP : IPlugin
|
||||||
else
|
else
|
||||||
content = await response.Content.ReadAsStringAsync();
|
content = await response.Content.ReadAsStringAsync();
|
||||||
|
|
||||||
if (response.IsSuccessStatusCode)
|
_game.LuaRuntime.PushEvent("http_response", requestId, response.IsSuccessStatusCode, content, (int)response.StatusCode, response.ReasonPhrase);
|
||||||
_game.LuaRuntime.PushEvent("http_response", requestId, content, (int)response.StatusCode);
|
|
||||||
else
|
|
||||||
_game.LuaRuntime.PushEvent("http_failure", requestId, content, (int)response.StatusCode, response.ReasonPhrase);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
L.PushInteger(requestId);
|
L.PushInteger(requestId);
|
||||||
|
|
Loading…
Reference in a new issue