Nicolas Cannasse 17 lat temu
rodzic
commit
07c0b8d748

+ 1 - 1
std/haxe/remoting/HttpAsyncConnection.hx

@@ -73,7 +73,7 @@ class HttpAsyncConnection implements AsyncConnection {
 		h.request(true);
 		h.request(true);
 	}
 	}
 
 
-	public static function urlConnect( url : String ) : AsyncConnection {
+	public static function urlConnect( url : String ) {
 		return new HttpAsyncConnection({ url : url, error : function(e) throw e },[]);
 		return new HttpAsyncConnection({ url : url, error : function(e) throw e },[]);
 	}
 	}
 
 

+ 1 - 1
std/haxe/remoting/HttpConnection.hx

@@ -65,7 +65,7 @@ class HttpConnection implements Connection {
 
 
 	#if (js || neko || php)
 	#if (js || neko || php)
 
 
-	public static function urlConnect( url : String ) : Connection {
+	public static function urlConnect( url : String ) {
 		return new HttpConnection(url,[]);
 		return new HttpConnection(url,[]);
 	}
 	}