Skip to content

Commit

Permalink
EA-4015 FIX serach api client
Browse files Browse the repository at this point in the history
  • Loading branch information
SrishtiSingh-eu committed Dec 3, 2024
1 parent fa4667a commit 1ec71f6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ public JSONObject searchItems(String uri, String postBody) throws SearchApiClien
CloseableHttpResponse jsonResponse;
try {
if (postBody != null) {
jsonResponse = createHttpConnection().post(uri, postBody, null, null);
jsonResponse = createHttpConnection().post(uri, postBody, "application/json", null);
} else {
jsonResponse = createHttpConnection().get(uri, null, null);
jsonResponse = createHttpConnection().get(uri, "application/json", null);
}
if (jsonResponse == null) {
// HTTP Error Code
Expand Down

0 comments on commit 1ec71f6

Please sign in to comment.