mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 06:22: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:
parent
ff3e7c6665
commit
0c380239a9
@ -65,5 +65,10 @@ namespace Ocelot.Request.Middleware
|
|||||||
|
|
||||||
return uriBuilder.Uri.AbsoluteUri;
|
return uriBuilder.Uri.AbsoluteUri;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override string ToString()
|
||||||
|
{
|
||||||
|
return ToUri();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user