Skip to content

Commit cf26f15

Browse files
authored
Merge pull request #6 from orangemi/master
fix: statusCode maybe 200 204 206
2 parents b5ef717 + bbb14d9 commit cf26f15

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
@@ -1756,7 +1756,7 @@ function submitRequest(params, callback) {
17561756
}
17571757

17581758
// 请求返回码不为 200
1759-
if (statusCode !== 200) {
1759+
if (statusCode !== 200 && statusCode !== 204 && statusCode !== 206) {
17601760
callback({
17611761
statusCode: statusCode,
17621762
error: jsonRes.Error || jsonRes
@@ -1852,4 +1852,4 @@ exports.multipartAbort = multipartAbort;
18521852
exports.deleteMultipleObject = deleteMultipleObject;
18531853

18541854
// 工具方法
1855-
exports.getAuth = getAuth;
1855+
exports.getAuth = getAuth;

0 commit comments

Comments
 (0)