summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authoraosull01 <adrian.osullivan@huawei.com>2019-08-08 17:47:47 +0100
committeraosull01 <adrian.osullivan@huawei.com>2019-08-08 17:48:19 +0100
commitab7677d38aa8f96315a17a71cbeb1daf45f85bc2 (patch)
tree96ce1f1a41d0ecdcdfa311deedfc53690023e7e5 /src/main/java/org
parent9856ecbcee2c3714d0038cbbd6b7fbd6a2556a5a (diff)
Correct content-type sent to SDC for check connectivity
Change-Id: I2e2fbd8dc30902a4c337c244291fb46ad5ae7eb6 Issue-ID: EXTAPI-287 Signed-off-by: aosull01 <adrian.osullivan@huawei.com>
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/onap/nbi/apis/servicecatalog/SdcClient.java2
1 files changed, 2 insertions, 0 deletions
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<String> 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);