From 342a9cec20548c81f879cd8a52739be9f15b2f74 Mon Sep 17 00:00:00 2001 From: Linventif Date: Wed, 27 Sep 2023 03:30:09 +0200 Subject: [PATCH] fix arg --- lua/gmod_integration/shared/sh_http.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index b9179f8..cdd67d2 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -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)