From 518e7c6b95702cecbca5502b5d4675bec39f7d96 Mon Sep 17 00:00:00 2001 From: charitha Date: Fri, 16 Mar 2018 10:59:07 +0530 Subject: [PATCH] Fix build failure --- .../java/org/wso2/iot/integration/common/IOTHttpClient.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/IOTHttpClient.java b/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/IOTHttpClient.java index 76ec1137..f6e16dea 100644 --- a/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/IOTHttpClient.java +++ b/modules/integration/tests-common/integration-common/src/main/java/org/wso2/iot/integration/common/IOTHttpClient.java @@ -19,6 +19,7 @@ package org.wso2.iot.integration.common; import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler; +import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory; import org.apache.commons.httpclient.methods.*; @@ -164,6 +165,7 @@ public class IOTHttpClient { DeleteMethod method = new DeleteMethod(url); method.setRequestHeader(AUTHORIZATION, authorizationString); + method.setRequestHeader(Constants.CONTENT_TYPE, requestHeaders.get(Constants.CONTENT_TYPE)); method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER, new DefaultHttpMethodRetryHandler(3, false));