Change-Id: I242efc5b1d2174fa51274b98d0456003de88c875
Issue-ID: HOLMES-50
Signed-off-by: GuangrongFu <fu.guangrong@zte.com.cn>
if (StringUtils.isNotEmpty(content)) {\r
httpPut.setEntity(new ByteArrayEntity(content.getBytes()));\r
}\r
if (StringUtils.isNotEmpty(content)) {\r
httpPut.setEntity(new ByteArrayEntity(content.getBytes()));\r
}\r
- return httpClient.execute(httpPut);\r
+ HttpResponse response = httpClient.execute(httpPut);\r
+ log.info("Return value for put request is " + EntityUtils.toString(response.getEntity()) + ".");\r
+ return response;\r
} finally {\r
httpClient.close();\r
}\r
} finally {\r
httpClient.close();\r
}\r