webconsole post improvement
This commit is contained in:
parent
bca366d7e5
commit
66aa84d896
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user