Browse Source

fixed port.

Nicolas Cannasse 19 năm trước cách đây
mục cha
commit
db1ea01981
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      std/haxe/Http.hx

+ 1 - 1
std/haxe/Http.hx

@@ -155,7 +155,7 @@ class Http {
 		var request = url_regexp.matched(4);
 		if( request == "" )
 			request = "/";
-		var port = if( portString == "" ) 80 else Std.parseInt(portString.substr(1,-1));
+		var port = if( portString == "" ) 80 else Std.parseInt(portString.substr(1,portString.length-1));
 		var s = new neko.Socket();
 		var data;