faster check for empty string
This commit is contained in:
parent
15d773dc6e
commit
8448625453
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ public class CustomWebFilter implements WebFilter {
|
|||
|
||||
final String path = exchange.getRequest().getPath().pathWithinApplication().value();
|
||||
|
||||
if (path.startsWith("/ui") || path.equals("") || path.equals("/")) {
|
||||
if (path.startsWith("/ui") || path.isEmpty() || path.equals("/")) {
|
||||
return chain.filter(
|
||||
exchange.mutate().request(
|
||||
exchange.getRequest().mutate()
|
||||
|
@ -29,4 +29,4 @@ public class CustomWebFilter implements WebFilter {
|
|||
|
||||
return chain.filter(exchange);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue