From c3cce56e48fe5f25b51900b760d2b7e8af114692 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Mon, 31 Jul 2017 21:54:16 -0400 Subject: [PATCH 1/2] Added the 'x-amz-acl' header to allow for public files without further API calls. --- Sources/S3/S3.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/S3/S3.swift b/Sources/S3/S3.swift index 959c920..ba96732 100644 --- a/Sources/S3/S3.swift +++ b/Sources/S3/S3.swift @@ -38,7 +38,7 @@ public struct S3 { payload: .bytes(bytes), method: .put, path: path - //TODO(Brett): headers & AccessControlList + headers: ["x-amz-acl": access.rawValue] ) let response = try EngineClient.factory.put(url, headers, Body.data(bytes)) From 76fd42110b7759214103b77edb9530ae04354440 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralph=20K=C3=BCpper?= Date: Tue, 1 Aug 2017 08:14:13 -0400 Subject: [PATCH 2/2] Typo fix, needed to add a comma. --- Sources/S3/S3.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/S3/S3.swift b/Sources/S3/S3.swift index ba96732..3084ff3 100644 --- a/Sources/S3/S3.swift +++ b/Sources/S3/S3.swift @@ -37,7 +37,7 @@ public struct S3 { let headers = try signer.sign( payload: .bytes(bytes), method: .put, - path: path + path: path, headers: ["x-amz-acl": access.rawValue] )