Skip to content

Commit 2269177

Browse files
刘斌刘斌
authored andcommitted
isNotQiniu
1 parent f284b72 commit 2269177

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,10 @@ private static boolean isChunkResOK(JSONObject response) {
183183
}
184184

185185
public static boolean isNotUpToQiniu(ResponseInfo info, JSONObject response) {
186-
return info.statusCode < 500 && info.statusCode >= 200 && (info.hasReqId() || response != null);
186+
return info.statusCode < 500 && info.statusCode >= 200 && (!info.hasReqId() && response == null);
187187
}
188188

189189
public static boolean isNotChunkToQiniu(ResponseInfo info, JSONObject response) {
190-
return info.statusCode < 500 && info.statusCode >= 200 && (info.hasReqId() || isChunkResOK(response));
190+
return info.statusCode < 500 && info.statusCode >= 200 && (!info.hasReqId() && !isChunkResOK(response));
191191
}
192192
}

0 commit comments

Comments
 (0)