longz
2026-07-23 cfbe78331f3f14b0c25991bddba2d3f821af52ad
ruoyi-gateway/src/main/java/com/ruoyi/gateway/filter/RequestParamGlobalFilter.java
@@ -61,6 +61,10 @@
      if(method != HttpMethod.POST){
         return chain.filter(exchange);
      }
      MediaType contentType = request.getHeaders().getContentType();
      if (contentType == null || !MediaType.APPLICATION_JSON.isCompatibleWith(contentType)) {
         return chain.filter(exchange);
      }
      ServerHttpRequestDecorator httpRequestDecorator = requestDecorator(exchange);
      return chain.filter(exchange.mutate().request(httpRequestDecorator).build());
   }