Nicolas Cannasse пре 17 година
родитељ
комит
07c0b8d748
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1 1
      std/haxe/remoting/HttpAsyncConnection.hx
  2. 1 1
      std/haxe/remoting/HttpConnection.hx

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

@@ -73,7 +73,7 @@ class HttpAsyncConnection implements AsyncConnection {
 		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 },[]);
 	}
 

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

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