aboutsummaryrefslogtreecommitdiffstats
path: root/profiles/http
diff options
context:
space:
mode:
authorKanagaraj M <mkr1481@gmail.com>2019-04-12 16:26:09 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2019-04-12 16:29:52 +0530
commit47d5bfc7f5acf4967c53bbd6b1755842118f1312 (patch)
tree0cb615262132c566edf131afa23a835cd60c8641 /profiles/http
parent533d50ac752433c5bb077afef810886f40725912 (diff)
Fix DELETE with body fails
Issue-ID: CLI-154 Change-Id: I1228d3ddff11c2eabb3fd0acc40e0063afcfd09b Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'profiles/http')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
index 186383d9..5b85ca9a 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
@@ -312,7 +312,7 @@ public class OnapHttpConnection {
} else if ("delete".equals(input.getMethod())) {
if (!input.getBody().isEmpty()) {
HttpDeleteWithBody httpDelete = new HttpDeleteWithBody();
- httpDelete.setEntity(this.getStringEntity(input));
+ httpDelete.setEntity(new StringEntity(input.getBody(), ContentType.APPLICATION_JSON));
requestBase = httpDelete;
} else {
requestBase = new HttpDelete();
@@ -401,7 +401,7 @@ public class OnapHttpConnection {
}
public String getMethod() {
- return OnapCommandHttpConstants.DELETE;
+ return OnapCommandHttpConstants.DELETE.toUpperCase();
}
}