mirror of
				https://github.com/nsnail/Ocelot.git
				synced 2025-11-04 15:10:50 +08:00 
			
		
		
		
	Override ToString() in DownstreamRequest (#301)
When executing the downstreamUrlCreatorMittleware the downstream request url shoud be written to the log. But instead of the url the type name gets written because the ToString() method wasn't overriden. Now ToString() internally calls the ToUri() method in order to provide the url instead of the type name.
This commit is contained in:
		
				
					committed by
					
						
						Tom Pallister
					
				
			
			
				
	
			
			
			
						parent
						
							ff3e7c6665
						
					
				
				
					commit
					0c380239a9
				
			@@ -65,5 +65,10 @@ namespace Ocelot.Request.Middleware
 | 
			
		||||
 | 
			
		||||
            return uriBuilder.Uri.AbsoluteUri;
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        public override string ToString() 
 | 
			
		||||
        {
 | 
			
		||||
            return ToUri();
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user