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

Commit

Permalink
Added the 'x-amz-acl' header to allow for public files without furthe…
Browse files Browse the repository at this point in the history
…r API calls.
  • Loading branch information
proggeramlug committed Aug 1, 2017
1 parent 46fdc6e commit c3cce56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/S3/S3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit c3cce56

Please sign in to comment.