From 8829b08e92d27e6ac7d845cc36dc8a114ad6b70d Mon Sep 17 00:00:00 2001 From: lucamac Date: Wed, 27 Mar 2013 19:39:29 +0100 Subject: [PATCH 1/2] FAILURE_MESSAGE handling in handleMessage(), correctly handling response[1] as String --- .classpath | 17 +++++++++-------- .../android/http/BinaryHttpResponseHandler.java | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.classpath b/.classpath index 14fcf527f..6c6163d3b 100644 --- a/.classpath +++ b/.classpath @@ -1,8 +1,9 @@ - - - - - - - - + + + + + + + + + diff --git a/src/com/loopj/android/http/BinaryHttpResponseHandler.java b/src/com/loopj/android/http/BinaryHttpResponseHandler.java index aff1c631e..669bf615b 100644 --- a/src/com/loopj/android/http/BinaryHttpResponseHandler.java +++ b/src/com/loopj/android/http/BinaryHttpResponseHandler.java @@ -142,7 +142,7 @@ protected void handleMessage(Message msg) { break; case FAILURE_MESSAGE: response = (Object[])msg.obj; - handleFailureMessage((Throwable)response[0], (byte[])response[1]); + handleFailureMessage((Throwable)response[0], response[1].toString()); break; default: super.handleMessage(msg); From 948e25cfc7a1531801fb473d912e7914c62e2ae8 Mon Sep 17 00:00:00 2001 From: lucamac Date: Wed, 27 Mar 2013 23:46:33 +0100 Subject: [PATCH 2/2] Revert to original classpath commited by mistake --- .classpath | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.classpath b/.classpath index 6c6163d3b..14fcf527f 100644 --- a/.classpath +++ b/.classpath @@ -1,9 +1,8 @@ - - - - - - - - - + + + + + + + +