Skip to content

Commit

Permalink
fix: pass urlEncodeSourceObject option to S3-abstraction
Browse files Browse the repository at this point in the history
  • Loading branch information
ndekeister-us committed Jun 22, 2021
1 parent 37ba0ef commit 1ddd726
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,15 @@ module.exports = {
var revisionKey = this.readConfig('revisionKey');
var filePattern = this.readConfig('filePattern');
var serverSideEncryption = this.readConfig('serverSideEncryption');
var urlEncodeSourceObject = this.readConfig('urlEncodeSourceObject');

var options = {
bucket: bucket,
prefix: prefix,
acl: acl,
filePattern: filePattern,
revisionKey: revisionKey,
urlEncodeSourceObject: urlEncodeSourceObject,
};

if (serverSideEncryption) {
Expand Down
3 changes: 2 additions & 1 deletion tests/unit/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ describe('s3-index plugin', function() {
bucket: BUCKET,
prefix: DEFAULT_PREFIX,
filePattern: DEFAULT_FILE_PATTERN,
revisionKey: '1234'
revisionKey: '1234',
urlEncodeSourceObject: true,
};

assert.deepEqual(s3Options, expected);
Expand Down

0 comments on commit 1ddd726

Please sign in to comment.