Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions functional/TestArgs.java
Original file line number Diff line number Diff line change
Expand Up @@ -267,13 +267,10 @@ public static byte[] readObject(String urlString) throws Exception {

/** Write data to given object url. */
public static void writeObject(String urlString, byte[] dataBytes) throws Exception {
// Set header 'x-amz-acl' to 'bucket-owner-full-control', so objects created
// anonymously, can be downloaded by bucket owner in AWS S3.
Request request =
new Request.Builder()
.url(HttpUrl.parse(urlString))
.method("PUT", RequestBody.create(dataBytes, null))
.addHeader("x-amz-acl", "bucket-owner-full-control")
.build();
try (Response response = newHttpClient().newCall(request).execute()) {
if (!response.isSuccessful()) {
Expand Down
Loading