diff --git a/src/modules/http.lua b/src/modules/http.lua index 63efac6..3b1d753 100644 --- a/src/modules/http.lua +++ b/src/modules/http.lua @@ -13,6 +13,7 @@ local STRAFES_NET_RATELIMIMT = { } local remaining_timeout = 0 local function request(method,url,headers,body,options) + if type(body)=='table' then body=json.encode(body) end local headers,body=http.request(method,url,headers,body,options) local rbody=json.decode(body) or body local rheaders={}