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:
Felix Boers 2018-04-05 20:07:45 +02:00 committed by Tom Pallister
parent ff3e7c6665
commit 0c380239a9

View File

@ -65,5 +65,10 @@ namespace Ocelot.Request.Middleware
return uriBuilder.Uri.AbsoluteUri; return uriBuilder.Uri.AbsoluteUri;
} }
public override string ToString()
{
return ToUri();
}
} }
} }