Skip to content

Commit

Permalink
correctly pass 'acl' arg in put_bucket() (closes #172)
Browse files Browse the repository at this point in the history
  • Loading branch information
leeper committed Mar 19, 2018
1 parent 61a265c commit 168f359
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* Fixed a bug in `s3write_using()`. (#205, h/t Patrick Miller)
* Bumped **aws.signature** dependency to v0.3.7 to take advantage of automatic credential loading. (#184, h/t Dan Tenenbaum)
* `acl` argument was ignored by `put_bucket()`. This is now fixed. (#172)

# aws.s3 0.3.8

Expand Down
4 changes: 3 additions & 1 deletion R/put_bucket.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ function(bucket,
...){
b <- paste0('<CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><LocationConstraint>',
region, '</LocationConstraint></CreateBucketConfiguration>')
r <- s3HTTP(verb = "PUT",
acl <- match.arg(acl)
headers <- c(list(`x-amz-acl` = acl), headers)
ir <- s3HTTP(verb = "PUT",
bucket = bucket,
request_body = b,
headers = headers,
Expand Down

0 comments on commit 168f359

Please sign in to comment.