Pre Merge pull request !146 from runphp/N/A

This commit is contained in:
runphp 2022-02-12 06:02:58 +00:00 committed by Gitee
commit 4f73f7af50
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ public class BlackListUrlFilter extends AbstractGatewayFilterFactory<BlackListUr
public boolean matchBlacklist(String url)
{
return blacklistUrlPattern.isEmpty() ? false : blacklistUrlPattern.stream().filter(p -> p.matcher(url).find()).findAny().isPresent();
return !blacklistUrlPattern.isEmpty() && blacklistUrlPattern.stream().anyMatch(p -> p.matcher(url).find());
}
public List<String> getBlacklistUrl()