Skip to content

Commit 832812c

Browse files
committed
Merge pull request android-async-http#284 from fixedd/master
The failure message should have the response in a byte array.
2 parents c815ea6 + 7d10a63 commit 832812c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/loopj/android/http/BinaryHttpResponseHandler.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ protected void handleMessage(Message msg) {
147147
break;
148148
case FAILURE_MESSAGE:
149149
response = (Object[])msg.obj;
150-
handleFailureMessage((Throwable)response[0], response[1].toString());
150+
handleFailureMessage((Throwable)response[0], (byte[]) response[1]);
151151
break;
152152
default:
153153
super.handleMessage(msg);
@@ -195,4 +195,4 @@ void sendResponseMessage(HttpResponse response) {
195195
sendSuccessMessage(status.getStatusCode(), responseBody);
196196
}
197197
}
198-
}
198+
}

0 commit comments

Comments
 (0)