Pre Merge pull request !192 from twelvet/N/A
This commit is contained in:
commit
0fececc3b6
|
|
@ -46,6 +46,11 @@ public class AuthFilter implements GlobalFilter, Ordered
|
|||
ServerHttpRequest.Builder mutate = request.mutate();
|
||||
|
||||
String url = request.getURI().getPath();
|
||||
|
||||
if (url.endsWith("/")) {
|
||||
url = url.substring(0, url.length() - 1);
|
||||
}
|
||||
|
||||
// 跳过不需要验证的路径
|
||||
if (StringUtils.matches(url, ignoreWhite.getWhites()))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue