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,[]);
 	}