douo/android-async-http — pull request #1 by behanga (2013-12-20 06:32:30+00:00)
Title: 在网络状况不好的时候，会大量出现ClassCastException异常导致FC

原因是这时候response[3]为String类型，无法强制转换为byte[]

以下是sentry捕获的异常

Exception
Types:
ClassCastException
Value:
java.lang.String cannot be cast to byte[]

Stacktrace (most recent call first)
dalvik.system.NativeStart ? in main at line -2
com.android.internal.os.ZygoteInit ? in main at line 608
com.android.internal.os.ZygoteInit$MethodAndArgsCaller ? in run at line 841
java.lang.reflect.Method ? in invoke at line 511
java.lang.reflect.Method ? in invokeNative at line -2
android.app.ActivityThread ? in main at line 4815
android.os.Looper ? in loop at line 137
android.os.Handler ? in dispatchMessage at line 99
com.loopj.android.http.AsyncHttpResponseHandler$1 ? in handleMessage at line 104
com.loopj.android.http.BinaryHttpResponseHandler ? in handleMessage at line 158
Caused by: java.lang.ClassCastException ("java.lang.String cannot be cast to byte[]") ? at line -1