This commit is contained in:
Linventif 2023-09-27 03:30:09 +02:00
parent 48445ef698
commit 342a9cec20

View File

@ -22,7 +22,7 @@ local function sendHTTP(params)
gmInte.log("HTTP Body: " .. body, true) gmInte.log("HTTP Body: " .. body, true)
if (string.sub(code, 1, 1) == "2") then if (string.sub(code, 1, 1) == "2") then
if (params.success) then if (params.success) then
params.success(body, code, headers) params.success(code, body, headers)
end end
else else
gmInte.logError("HTTP Request failed with code " .. code .. " and body " .. body) gmInte.logError("HTTP Request failed with code " .. code .. " and body " .. body)