Skip to content

Commit 55318eb

Browse files
committed
1 parent d8903be commit 55318eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/src/com/loopj/android/http/JsonHttpResponseHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ protected void handleFailureMessage(Throwable e, String responseBody) {
191191
onFailure(e, (JSONObject) jsonResponse);
192192
} else if (jsonResponse instanceof JSONArray) {
193193
onFailure(e, (JSONArray) jsonResponse);
194+
} else if (jsonResponse instanceof String) {
195+
onFailure(e, (String) jsonResponse);
194196
} else {
195197
onFailure(e, responseBody);
196198
}

0 commit comments

Comments
 (0)