Skip to content

Commit

Permalink
fix(http): fix exception thrown on 204 responses
Browse files Browse the repository at this point in the history
* fix(http): fix exception thrown on 204 responses

* chore: remove native bridge changes

* Update native-bridge.js
  • Loading branch information
ItsChaceD authored Oct 20, 2022
1 parent 205b6e6 commit 1f6e8be
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@ private static Object parseJSON(String input) throws JSONException {
return new JSONObject().put("flag", "true");
} else if ("false".equals(input.trim())) {
return new JSONObject().put("flag", "false");
} else if (input.trim().length() <= 0) {
return "";
} else {
try {
return new JSObject(input);
Expand Down

0 comments on commit 1f6e8be

Please # to comment.