mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 19:58:14 +08:00
This commit is contained in:

committed by
Tom Pallister

parent
e636cefdb1
commit
fffc4c8d3c
@ -49,7 +49,8 @@ namespace Ocelot.DownstreamRouteFinder.Finder
|
||||
|
||||
private bool RouteIsApplicableToThisRequest(ReRoute reRoute, string httpMethod, string upstreamHost)
|
||||
{
|
||||
return reRoute.UpstreamHttpMethod.Count == 0 || reRoute.UpstreamHttpMethod.Select(x => x.Method.ToLower()).Contains(httpMethod.ToLower()) && !(!string.IsNullOrEmpty(reRoute.UpstreamHost) && reRoute.UpstreamHost != upstreamHost);
|
||||
return (reRoute.UpstreamHttpMethod.Count == 0 || reRoute.UpstreamHttpMethod.Select(x => x.Method.ToLower()).Contains(httpMethod.ToLower())) &&
|
||||
(string.IsNullOrEmpty(reRoute.UpstreamHost) || reRoute.UpstreamHost == upstreamHost);
|
||||
}
|
||||
|
||||
private DownstreamRoute GetPlaceholderNamesAndValues(string path, ReRoute reRoute)
|
||||
|
Reference in New Issue
Block a user