From 681bbbc5f9ea4ed19ea6c3871bd38a541cb8df9b Mon Sep 17 00:00:00 2001 From: Linventif Date: Wed, 27 Sep 2023 02:23:27 +0200 Subject: [PATCH] fix typo --- lua/gmod_integration/shared/sh_http.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/gmod_integration/shared/sh_http.lua b/lua/gmod_integration/shared/sh_http.lua index 36db90b..b9179f8 100644 --- a/lua/gmod_integration/shared/sh_http.lua +++ b/lua/gmod_integration/shared/sh_http.lua @@ -4,18 +4,18 @@ local function sendHTTP(params) gmInte.log("HTTP Request: " .. params.method .. " " .. params.endpoint, true) - gmInte.log("HTTP Body: " .. (params.body or "No body"), true) + gmInte.log("HTTP Body: " .. (params.body || "No body"), true) HTTP({ url = "https://api.gmod-integration.com" .. params.endpoint, method = params.method, headers = { ["Content-Type"] = "application/json", - ["Content-Length"] = params.body and string.len(params.body) or 0, + ["Content-Length"] = params.body and string.len(params.body) || 0, ["id"] = gmInte.config.id, ["token"] = gmInte.config.token, ["version"] = gmInte.version }, - body = params.body && params.body or "", + body = params.body && params.body || "", type = "application/json", success = function(code, body, headers) gmInte.log("HTTP Response: " .. code, true)