more tests and docs

This commit is contained in:
TomPallister
2020-04-13 16:48:28 +01:00
parent 6c20b1173f
commit b7cfac9336
3 changed files with 21 additions and 5 deletions

View File

@ -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
{