|
@@ -54,7 +54,7 @@ public class CacheRequestFilter extends AbstractGatewayFilterFactory<CacheReques
|
|
54
|
{
|
54
|
{
|
|
55
|
// GET DELETE 不过滤
|
55
|
// GET DELETE 不过滤
|
|
56
|
HttpMethod method = exchange.getRequest().getMethod();
|
56
|
HttpMethod method = exchange.getRequest().getMethod();
|
|
57
|
- if (method == null || method.matches("GET") || method.matches("DELETE"))
|
|
|
|
|
|
57
|
+ if (method == null || method == HttpMethod.GET || method == HttpMethod.DELETE)
|
|
58
|
{
|
58
|
{
|
|
59
|
return chain.filter(exchange);
|
59
|
return chain.filter(exchange);
|
|
60
|
}
|
60
|
}
|