Skip to content

Commit 9f7a8aa

Browse files
authored
Merge pull request #243 from sxci/cancel
取消操作 [ci skip]
2 parents a61dc88 + d79e765 commit 9f7a8aa

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
@@ -304,7 +304,7 @@ public void accept(String key, Object value) {
304304
});
305305
mb.setType(MediaType.parse("multipart/form-data"));
306306
RequestBody body = mb.build();
307-
if (progressHandler != null) {
307+
if (progressHandler != null || cancellationHandler != null) {
308308
body = new CountingRequestBody(body, progressHandler, cancellationHandler);
309309
}
310310
Request.Builder requestBuilder = new Request.Builder().url(url).post(body);

0 commit comments

Comments
 (0)