aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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();
}
}