mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 21:17:34 +00:00
fix arg
This commit is contained in:
parent
48445ef698
commit
342a9cec20
|
@ -22,7 +22,7 @@ local function sendHTTP(params)
|
|||
gmInte.log("HTTP Body: " .. body, true)
|
||||
if (string.sub(code, 1, 1) == "2") then
|
||||
if (params.success) then
|
||||
params.success(body, code, headers)
|
||||
params.success(code, body, headers)
|
||||
end
|
||||
else
|
||||
gmInte.logError("HTTP Request failed with code " .. code .. " and body " .. body)
|
||||
|
|
Loading…
Reference in New Issue
Block a user