mirror of
https://repository.entgra.net/community/product-iots.git
synced 2025-09-16 23:32:19 +00:00
Fix build failure
This commit is contained in:
parent
f6eb63344a
commit
518e7c6b95
@ -19,6 +19,7 @@ package org.wso2.iot.integration.common;
|
|||||||
|
|
||||||
|
|
||||||
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
|
import org.apache.commons.httpclient.DefaultHttpMethodRetryHandler;
|
||||||
|
import org.apache.commons.httpclient.Header;
|
||||||
import org.apache.commons.httpclient.HttpClient;
|
import org.apache.commons.httpclient.HttpClient;
|
||||||
import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory;
|
import org.apache.commons.httpclient.contrib.ssl.EasySSLProtocolSocketFactory;
|
||||||
import org.apache.commons.httpclient.methods.*;
|
import org.apache.commons.httpclient.methods.*;
|
||||||
@ -164,6 +165,7 @@ public class IOTHttpClient {
|
|||||||
|
|
||||||
DeleteMethod method = new DeleteMethod(url);
|
DeleteMethod method = new DeleteMethod(url);
|
||||||
method.setRequestHeader(AUTHORIZATION, authorizationString);
|
method.setRequestHeader(AUTHORIZATION, authorizationString);
|
||||||
|
method.setRequestHeader(Constants.CONTENT_TYPE, requestHeaders.get(Constants.CONTENT_TYPE));
|
||||||
method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
|
method.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,
|
||||||
new DefaultHttpMethodRetryHandler(3, false));
|
new DefaultHttpMethodRetryHandler(3, false));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user