extract QueryString
This commit is contained in:
		@@ -38,7 +38,7 @@ var Router = function( http )
 | 
			
		||||
	this.routeObj = {};
 | 
			
		||||
	this.reRoute = false;
 | 
			
		||||
 | 
			
		||||
	this.relaying = new RelayPoint( http.request.raw.url );
 | 
			
		||||
	this.relaying = new RelayPoint( http.request.raw.url.split( "?" )[0] );
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
util.inherits( Router, events.EventEmitter );
 | 
			
		||||
 
 | 
			
		||||
@@ -75,14 +75,19 @@ Framework.prototype.run = function()
 | 
			
		||||
		method = "POST";
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	var url = this.HTTP.request.raw.url;
 | 
			
		||||
	Dragonfly.Info(
 | 
			
		||||
		( this.HTTP.request.raw.headers[ "x-forwarded-for" ] || this.HTTP.request.remoteAddr ) + " "
 | 
			
		||||
		+ method + ": " + encodeURI( this.HTTP.request.raw.url )
 | 
			
		||||
		+ method + ": " + encodeURI( url )
 | 
			
		||||
		+ " - " + this.HTTP.request.raw.headers["user-agent"]
 | 
			
		||||
		, Dragonfly.Visibility.VISIBLE
 | 
			
		||||
	);
 | 
			
		||||
 | 
			
		||||
	if( method == "GET" ) _self.parseResult();
 | 
			
		||||
	if( method == "GET" )
 | 
			
		||||
	{
 | 
			
		||||
		_self.queryStr = url.split( "?" )[1];
 | 
			
		||||
		_self.parseResult();
 | 
			
		||||
	}
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
Framework.prototype.addHandler = function( name, method )
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user