Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 5ce8efa

Browse files
authored
Merge pull request #26 from skelpo/master
Added the 'x-amz-acl' header
2 parents 35516e1 + 22aea30 commit 5ce8efa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/S3/S3.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public struct S3 {
3737
let headers = try signer.sign(
3838
payload: .bytes(bytes),
3939
method: .put,
40-
path: path
41-
//TODO(Brett): headers & AccessControlList
40+
path: path,
41+
headers: ["x-amz-acl": access.rawValue]
4242
)
4343

4444
let response = try EngineClient.factory.put(url, headers, Body.data(bytes))

0 commit comments

Comments
 (0)