Browse Source

fixed port.

Nicolas Cannasse 19 years ago
parent
commit
db1ea01981
1 changed files with 1 additions and 1 deletions
  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;