Browse Source

1.7.0 compat

Nicolas Cannasse 17 years ago
parent
commit
b042d83c78
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/haxe/Http.hx

+ 1 - 1
std/haxe/Http.hx

@@ -270,7 +270,7 @@ class Http {
 		var request = url_regexp.matched(4);
 		if( request == "" )
 			request = "/";
-		var port = if( portString == null ) 80 else Std.parseInt(portString.substr(1,portString.length-1));
+		var port = if( portString == null || portString == "" ) 80 else Std.parseInt(portString.substr(1,portString.length-1));
 		var data;
 
 		var multipart = (file != null);