From ab7677d38aa8f96315a17a71cbeb1daf45f85bc2 Mon Sep 17 00:00:00 2001 From: aosull01 Date: Thu, 8 Aug 2019 17:47:47 +0100 Subject: Correct content-type sent to SDC for check connectivity Change-Id: I2e2fbd8dc30902a4c337c244291fb46ad5ae7eb6 Issue-ID: EXTAPI-287 Signed-off-by: aosull01 --- src/main/java/org/onap/nbi/apis/servicecatalog/SdcClient.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/main/java/org/onap/nbi/apis/servicecatalog/SdcClient.java b/src/main/java/org/onap/nbi/apis/servicecatalog/SdcClient.java index 2e6893d..0eb9da9 100644 --- a/src/main/java/org/onap/nbi/apis/servicecatalog/SdcClient.java +++ b/src/main/java/org/onap/nbi/apis/servicecatalog/SdcClient.java @@ -37,6 +37,7 @@ import org.springframework.http.HttpEntity; import org.springframework.http.HttpHeaders; import org.springframework.http.HttpMethod; import org.springframework.http.HttpStatus; +import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.stereotype.Service; import org.springframework.util.MultiValueMap; @@ -172,6 +173,7 @@ public class SdcClient { private HttpEntity buildRequestHeader() { HttpHeaders httpHeaders = new HttpHeaders(); + httpHeaders.setContentType(MediaType.APPLICATION_JSON); httpHeaders.add(HEADER_ECOMP_INSTANCE_ID, ecompInstanceId); httpHeaders.add(HEADER_AUTHORIZATION, sdcHeaderAuthorization); return new HttpEntity<>("parameters", httpHeaders); -- cgit 1.2.3-korg