mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
update 优化 CacheRequestFilter 使用枚举替换字符串
This commit is contained in:
@@ -54,7 +54,7 @@ public class CacheRequestFilter extends AbstractGatewayFilterFactory<CacheReques
|
|||||||
{
|
{
|
||||||
// GET DELETE 不过滤
|
// GET DELETE 不过滤
|
||||||
HttpMethod method = exchange.getRequest().getMethod();
|
HttpMethod method = exchange.getRequest().getMethod();
|
||||||
if (method == null || method.matches("GET") || method.matches("DELETE"))
|
if (method == null || method == HttpMethod.GET || method == HttpMethod.DELETE)
|
||||||
{
|
{
|
||||||
return chain.filter(exchange);
|
return chain.filter(exchange);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user