2
0
Nicolas Cannasse 17 жил өмнө
parent
commit
cd77658a3e

+ 2 - 2
std/mtwin/web/Request.hx

@@ -31,8 +31,8 @@ class Request {
 	var pathInfoParts  : Array<String>;
 	var params         : Hash<String>;
 
-	public function new() {
-		pathInfoParts = Web.getURI().split( "/" );
+	public function new( ?uri ) {
+		pathInfoParts = (uri == null ? neko.Web.getURI() : uri).split( "/" );
 		pathInfoParts.shift();
 		params = Web.getParams();
 	}