浏览代码

1.7.0 compat

Nicolas Cannasse 17 年之前
父节点
当前提交
b042d83c78
共有 1 个文件被更改,包括 1 次插入1 次删除
  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);