From 66aa84d89641818d4300310af589acc7aa770043 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Tue, 1 Mar 2022 15:05:49 +0100 Subject: [PATCH] webconsole post improvement --- src/util/Debug.hx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/util/Debug.hx b/src/util/Debug.hx index 8dc8ef9..5301f2f 100644 --- a/src/util/Debug.hx +++ b/src/util/Debug.hx @@ -1,9 +1,11 @@ package util; -import cc.HTTP; -import kernel.net.Net; import cc.ComputerCraft; import kernel.Log; +#if webconsole +import cc.HTTP; +import kernel.net.Net; +#end class Debug { public static function printBuildInfo() { @@ -18,7 +20,7 @@ class Debug { #if webconsole public static function printWeb(msg:String) { - HTTP.post("http://127.0.0.1:8080/"+Net.instance.networkID, msg); + HTTP.request("http://127.0.0.1:8080/"+Net.instance.networkID,msg); } #end }