From 8569a95116d98cf4697d40a7d47767e84c1edcda Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sun, 3 Dec 2023 20:04:28 +0530 Subject: [PATCH] attempt some fix? --- src/Http.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http.hx b/src/Http.hx index fc33df86..1751f7ea 100644 --- a/src/Http.hx +++ b/src/Http.hx @@ -50,13 +50,13 @@ class Http { responses.add(() -> req.callback(b)); req.fulfilled = true; }; - hl.Gc.enable(false); - hl.Gc.blocking(true); // Wtf is this shit if (req.post) { http.setHeader('User-Agent', 'MBHaxe/1.0 ${Util.getPlatform()}'); http.setHeader('Content-Type', "application/json"); // support json data only (for now) http.setPostData(req.postData); } + hl.Gc.enable(false); + hl.Gc.blocking(true); // Wtf is this shit http.request(req.post); hl.Gc.blocking(false); hl.Gc.enable(true);