Skip to content

Commit 932fe4b

Browse files
authored
fix: statusCode maybe 200 204 206
1 parent f5a70f3 commit 932fe4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sdk/base.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1802,7 +1802,7 @@ function submitRequest(params, callback) {
18021802
}
18031803

18041804
// 请求返回码不为 200
1805-
if (statusCode !== 200) {
1805+
if (statusCode !== 200 && statusCode !== 204 && statusCode !== 206) {
18061806
return callback({
18071807
statusCode: statusCode,
18081808
error: jsonRes.Error || jsonRes
@@ -1875,4 +1875,4 @@ exports.multipartAbort = MultipartAbort;
18751875
exports.deleteMultipleObject = deleteMultipleObject;
18761876

18771877
// 工具方法
1878-
exports.getAuth = getAuth;
1878+
exports.getAuth = getAuth;

0 commit comments

Comments
 (0)