Skip to content

Commit d8903be

Browse files
committed
1 parent fc5862e commit d8903be

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ public void setUserAgent(String userAgent) {
221221
}
222222

223223
/**
224-
* Sets the connection time oout. By default, 10 seconds
224+
* Set the connection timeout. By default, 10 seconds.
225225
*
226226
* @param timeout the connect/socket timeout in milliseconds
227227
*/

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ protected Message obtainMessage(int responseMessage, Object response) {
239239
}
240240

241241
// Interface to AsyncHttpRequest
242-
void sendResponseMessage(HttpResponse response) {
242+
protected void sendResponseMessage(HttpResponse response) {
243243
StatusLine status = response.getStatusLine();
244244
String responseBody = null;
245245
try {

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ protected void handleMessage(Message msg) {
161161

162162
// Interface to AsyncHttpRequest
163163
@Override
164-
void sendResponseMessage(HttpResponse response) {
164+
protected void sendResponseMessage(HttpResponse response) {
165165
StatusLine status = response.getStatusLine();
166166
Header[] contentTypeHeaders = response.getHeaders("Content-Type");
167167
byte[] responseBody = null;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public abstract class SyncHttpClient extends AsyncHttpClient {
1818
protected AsyncHttpResponseHandler responseHandler = new AsyncHttpResponseHandler() {
1919

2020
@Override
21-
void sendResponseMessage(org.apache.http.HttpResponse response) {
21+
protected void sendResponseMessage(org.apache.http.HttpResponse response) {
2222
responseCode = response.getStatusLine().getStatusCode();
2323
super.sendResponseMessage(response);
2424
}

0 commit comments

Comments
 (0)