Skip to content

Commit 5d347ca

Browse files
committed
---
yaml --- r: 4395 b: refs/heads/gcs-nio c: d5cf726 h: refs/heads/master i: 4393: 1c6cfdf 4391: 06b02f0
1 parent d70e616 commit 5d347ca

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ refs/tags/v0.0.12: 2fd8066e891fb3dfea69b65f6bf6461db79342b9
1111
refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212
refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313
refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
14-
refs/heads/gcs-nio: 554b03ed1a5bfe1baba5528559c60b83eb9fd0f8
14+
refs/heads/gcs-nio: d5cf72639e67e133bfb9f491a74aa786c009d856
1515
refs/heads/logging-alpha: db5312bffa7fccac194f6a7feb8cc3066de16aff
1616
refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717
refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0

branches/gcs-nio/gcloud-java-storage/src/main/java/com/google/cloud/storage/spi/DefaultStorageRpc.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ public byte[] load(StorageObject from, Map<Option, ?> options) {
355355
.setIfGenerationMatch(IF_GENERATION_MATCH.getLong(options))
356356
.setIfGenerationNotMatch(IF_GENERATION_NOT_MATCH.getLong(options));
357357
ByteArrayOutputStream out = new ByteArrayOutputStream();
358-
getRequest.getMediaHttpDownloader().setDirectDownloadEnabled(true);
359-
getRequest.executeMediaAndDownloadTo(out);
358+
getRequest.executeMedia().download(out);
360359
return out.toByteArray();
361360
} catch (IOException ex) {
362361
throw translate(ex);

0 commit comments

Comments
 (0)