Explorar o código

fixing the null/empty string problem of EReg generated an error in haxe.Http when using it with Neko

Franco Ponticelli %!s(int64=17) %!d(string=hai) anos
pai
achega
a6d0e0c99d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 == "" ) 80 else Std.parseInt(portString.substr(1,portString.length-1));
+		var port = if( portString == null ) 80 else Std.parseInt(portString.substr(1,portString.length-1));
 		var data;
 
 		var multipart = (file != null);