Skip to content

Commit

Permalink
修复 BucketLifecycle 接口的参数问题。
Browse files Browse the repository at this point in the history
  • Loading branch information
wonderswang committed Aug 9, 2019
1 parent 03f04d7 commit 5489730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"main": "index.js",
"scripts": {
"sts.js": "node server/sts.js",
"dev": "SET NODE_ENV=development&& webpack -w",
"build": "SET NODE_ENV=production&& webpack",
"dev": "cross-env NODE_ENV=development&& webpack -w",
"build": "cross-env NODE_ENV=production&& webpack",
"cos-auth.min.js": "uglifyjs ./demo/common/cos-auth.js -o ./demo/common/cos-auth.min.js -c -m"
},
"repository": {
Expand All @@ -28,6 +28,7 @@
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"cross-env": "^5.2.0",
"request": "^2.87.0",
"webpack": "^3.8.1",
"xmldom": "^0.1.27"
Expand Down
2 changes: 1 addition & 1 deletion src/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ function deleteBucketTagging(params, callback) {
function putBucketLifecycle(params, callback) {

var LifecycleConfiguration = params['LifecycleConfiguration'] || {};
var Rules = LifecycleConfiguration.Rules || [];
var Rules = LifecycleConfiguration.Rules || params.Rules || [];
Rules = util.clone(Rules);
var xml = util.json2xml({LifecycleConfiguration: {Rule: Rules}});

Expand Down

0 comments on commit 5489730

Please sign in to comment.