Skip to content

Commit

Permalink
[api] add content encoding option for s3 upload (pkgcloud#661)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcrugzz authored Jun 10, 2019
1 parent a16c415 commit 69b849a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pkgcloud/amazon/storage/client/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ exports.upload = function (options) {
if (options.contentType) {
s3Options.ContentType = options.contentType;
}

if (options.contentEncoding) {
s3Options.ContentEncoding = options.contentEncoding;
}

// use ACL until a more obvious permission generalization is available
if (options.acl) {
Expand Down

0 comments on commit 69b849a

Please sign in to comment.