mirror of
https://github.com/gmod-integration/lua.git
synced 2025-03-15 21:17:34 +00:00
add debug log
This commit is contained in:
parent
bd40bce5d3
commit
83d585c56d
|
@ -32,6 +32,8 @@ local function sendHTTP(params)
|
|||
body = params.body && params.body or "",
|
||||
type = "application/json",
|
||||
success = function(code, body, headers)
|
||||
gmInte.log("HTTP Response: " .. code, true)
|
||||
gmInte.log("HTTP Body: " .. body, true)
|
||||
if (gmInte.isCodeValid(code)) then
|
||||
if (params.success) then
|
||||
params.success(code, body, headers)
|
||||
|
|
Loading…
Reference in New Issue
Block a user