From 13e30c87b6eae437700c92cc549b6990c16d0d32 Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 10 Nov 2020 19:53:24 +0800 Subject: [PATCH] 4.2.0 --- .../sop/gatewaycommon/gateway/controller/GatewayController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/controller/GatewayController.java b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/controller/GatewayController.java index 44590fa8..6b5ba31a 100644 --- a/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/controller/GatewayController.java +++ b/sop-common/sop-gateway-common/src/main/java/com/gitee/sop/gatewaycommon/gateway/controller/GatewayController.java @@ -39,6 +39,7 @@ public class GatewayController { ApiException exception = ErrorEnum.ISV_INVALID_METHOD.getErrorMeta().getException(); ResultExecutor resultExecutor = ApiContext.getApiConfig().getGatewayResultExecutor(); String gatewayResult = resultExecutor.buildErrorResult(exchange, exception); + exchange.getResponse().getHeaders().add(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE); return Mono.just(gatewayResult); }