From 667a2f48dee2885aa91c8d2cbf7f08da6a7f0293 Mon Sep 17 00:00:00 2001 From: Catty <139758993+cattercatty@users.noreply.github.com> Date: Fri, 9 Jan 2026 21:42:38 +0200 Subject: [PATCH] fixed errors when HttpPost wasnt available. on a few popular executors i've tested this on (potassium, volt) HttpPost isnt available and thus it errors, therefore i wrote a quick patch for it. --- init.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index bade732..d0d1720 100644 --- a/init.lua +++ b/init.lua @@ -38,11 +38,18 @@ local reqfunc = (syn or http).request; local libtype = syn and "syn" or "http"; local hooked = {}; local proxied = {}; + +local function hasHttpPost() + return pcall(function() + return game.HttpPost + end) and true or nil; +end; + local methods = { HttpGet = not syn, HttpGetAsync = not syn, GetObjects = true, - HttpPost = not syn, + HttpPost = hasHttpPost(), HttpPostAsync = not syn }