mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 22:08:17 +08:00
more tests and docs
This commit is contained in:
@ -32,7 +32,7 @@ namespace Ocelot.Infrastructure
|
||||
|
||||
_requestPlaceholders = new Dictionary<string, Func<DownstreamRequest, string>>
|
||||
{
|
||||
{ "{DownstreamBaseUrl}", GetDownstreamBaseUrl() }
|
||||
{ "{DownstreamBaseUrl}", GetDownstreamBaseUrl() },
|
||||
};
|
||||
}
|
||||
|
||||
@ -143,10 +143,8 @@ namespace Ocelot.Infrastructure
|
||||
{
|
||||
return new OkResponse<string>(upstreamHost.First());
|
||||
}
|
||||
else
|
||||
{
|
||||
return new ErrorResponse<string>(new CouldNotFindPlaceholderError("{UpstreamHost}"));
|
||||
}
|
||||
|
||||
return new ErrorResponse<string>(new CouldNotFindPlaceholderError("{UpstreamHost}"));
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
Reference in New Issue
Block a user