Skip to content

Commit 8829b08

Browse files
committed
FAILURE_MESSAGE handling in handleMessage(), correctly handling
response[1] as String
1 parent 5b6cefe commit 8829b08

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

.classpath

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<classpath>
3-
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4-
<classpathentry kind="src" path="src"/>
5-
<classpathentry kind="src" path="gen"/>
6-
<classpathentry kind="src" path="examples"/>
7-
<classpathentry kind="output" path="bin/classes"/>
8-
</classpath>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
4+
<classpathentry kind="src" path="src"/>
5+
<classpathentry kind="src" path="gen"/>
6+
<classpathentry kind="src" path="examples"/>
7+
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
8+
<classpathentry kind="output" path="bin/classes"/>
9+
</classpath>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ protected void handleMessage(Message msg) {
142142
break;
143143
case FAILURE_MESSAGE:
144144
response = (Object[])msg.obj;
145-
handleFailureMessage((Throwable)response[0], (byte[])response[1]);
145+
handleFailureMessage((Throwable)response[0], response[1].toString());
146146
break;
147147
default:
148148
super.handleMessage(msg);

0 commit comments

Comments
 (0)