Issue-ID: CLI-154
Change-Id: I1228d3ddff11c2eabb3fd0acc40e0063afcfd09b
Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
} 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();
}
public String getMethod() {
- return OnapCommandHttpConstants.DELETE;
+ return OnapCommandHttpConstants.DELETE.toUpperCase();
}
}