Skip to content

Commit 9c56f08

Browse files
committed
Content-Type 不参与签名
1 parent 614250f commit 9c56f08

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cos-nodejs-sdk-v5",
3-
"version": "2.9.10",
3+
"version": "2.9.11",
44
"description": "cos nodejs sdk v5",
55
"main": "index.js",
66
"types": "types",

sdk/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3189,7 +3189,7 @@ function getAuthorizationAsync(params, callback) {
31893189

31903190
var headers = util.clone(params.Headers);
31913191
util.each(headers, function (v, k) {
3192-
(v === '' || ['content-type', 'cache-control', 'expires'].indexOf(k.toLowerCase())) && delete headers[k];
3192+
(v === '' || ['content-type', 'cache-control', 'expires'].indexOf(k.toLowerCase()) > -1) && delete headers[k];
31933193
});
31943194

31953195
// 获取凭证的回调,避免用户 callback 多次

0 commit comments

Comments
 (0)