Skip to content

Commit 10dd2bc

Browse files
committed
可能报空指针等其它错误
1 parent 68c7c5b commit 10dd2bc

File tree

1 file changed

+1
-1
lines changed
  • library/src/main/java/com/qiniu/android/http

1 file changed

+1
-1
lines changed

library/src/main/java/com/qiniu/android/http/Client.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private static ResponseInfo buildResponseInfo(okhttp3.Response response, String
174174
private static long getContentLength(okhttp3.Response response) {
175175
try {
176176
return response.request().body().contentLength();
177-
} catch (IOException e) {
177+
} catch (Throwable t) {
178178
return -1;
179179
}
180180
}

0 commit comments

Comments
 (0)