Skip to content

Commit

Permalink
fix: 更新可以加入签名的headers (#163)
Browse files Browse the repository at this point in the history
  • Loading branch information
livehigh authored Dec 29, 2022
1 parent 62dcb52 commit e01ff4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cos-nodejs-sdk-v5",
"version": "2.11.18",
"version": "2.11.19",
"description": "cos nodejs sdk v5",
"main": "index.js",
"types": "index.d.ts",
Expand Down
3 changes: 1 addition & 2 deletions sdk/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ var obj2str = function (obj, lowerCaseKey) {
// 可以签入签名的headers
var signHeaders = ['content-disposition', 'content-encoding', 'content-length', 'content-md5',
'expect', 'expires', 'host', 'if-match', 'if-modified-since', 'if-none-match', 'if-unmodified-since',
'origin', 'range', 'response-cache-control', 'response-content-disposition', 'response-content-encoding',
'response-content-language', 'response-content-type', 'response-expires', 'transfer-encoding', 'versionid'];
'origin', 'range', 'transfer-encoding'];

var getSignHeaderObj = function (headers) {
var signHeaderObj = {};
Expand Down

0 comments on commit e01ff4d

Please sign in to comment.