Skip to content

Commit 53167b4

Browse files
committed
Wrong chain calls
1 parent 00501f5 commit 53167b4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import org.json.JSONObject;
2828
import org.json.JSONTokener;
2929

30-
import java.io.UnsupportedEncodingException;
31-
3230
/**
3331
* Used to intercept and handle the responses from requests made using
3432
* {@link AsyncHttpClient}, with automatic parsing into a {@link JSONObject}
@@ -220,7 +218,7 @@ public void run() {
220218
postRunnable(new Runnable() {
221219
@Override
222220
public void run() {
223-
onFailure(ex, (JSONObject) null);
221+
onFailure(statusCode, headers, ex, (JSONObject) null);
224222
}
225223
});
226224

@@ -229,7 +227,7 @@ public void run() {
229227
}).start();
230228
} else {
231229
Log.v(LOG_TAG, "response body is null, calling onFailure(Throwable, JSONObject)");
232-
onFailure(e, (JSONObject) null);
230+
onFailure(statusCode, headers, e, (JSONObject) null);
233231
}
234232
}
235233

0 commit comments

Comments
 (0)