webconsole post improvement

This commit is contained in:
Djeeberjr 2022-03-01 15:05:49 +01:00
parent bca366d7e5
commit 66aa84d896

View File

@ -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
}