diff --git a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-server-support/src/main/scala/org/apache/linkis/gateway/dss/parser/DSSGatewayParser.scala b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-server-support/src/main/scala/org/apache/linkis/gateway/dss/parser/DSSGatewayParser.scala index bdf8dfbe5f..2d2c3c992a 100644 --- a/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-server-support/src/main/scala/org/apache/linkis/gateway/dss/parser/DSSGatewayParser.scala +++ b/linkis-spring-cloud-services/linkis-service-gateway/linkis-gateway-server-support/src/main/scala/org/apache/linkis/gateway/dss/parser/DSSGatewayParser.scala @@ -45,6 +45,11 @@ class DSSGatewayParser extends AbstractGatewayParser { val appConns = DSSGatewayConfiguration.DSS_URL_APPCONNS.getValue.split(",") override def shouldContainRequestBody(gatewayContext: GatewayContext): Boolean = { + val requestMethod = gatewayContext.getRequest.getMethod.toUpperCase(Locale.getDefault) + if ("DELETE".equals(requestMethod)) { + return false + } + var contentType = gatewayContext.getRequest.getHeaders.get("Content-Type") if (null == contentType) { contentType = gatewayContext.getRequest.getHeaders.get("content-type")