Skip to content

Commit

Permalink
fix: Linkis-Gateway can not work with DELETE request without request (#…
Browse files Browse the repository at this point in the history
…5154)

body (#1015)

Co-authored-by: west <754515661@qq.com>
  • Loading branch information
cwmore and WestEnlarged authored Aug 13, 2024
1 parent 9a9b210 commit da54921
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,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")
Expand Down

0 comments on commit da54921

Please sign in to comment.