Fix "Last Online" status #7

Merged
9382 merged 4 commits from main into main 2023-03-13 16:29:12 +00:00
Showing only changes of commit 5081d03d82 - Show all commits

View File

@ -13,6 +13,7 @@ local STRAFES_NET_RATELIMIMT = {
} }
local remaining_timeout = 0 local remaining_timeout = 0
local function request(method,url,headers,body,options) 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 headers,body=http.request(method,url,headers,body,options)
local rbody=json.decode(body) or body local rbody=json.decode(body) or body
local rheaders={} local rheaders={}