Skip to content

Commit 886c2c0

Browse files
committed
---
yaml --- r: 3349 b: refs/heads/master c: d5cf726 h: refs/heads/master i: 3347: b68c39e
1 parent 712ef31 commit 886c2c0

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 554b03ed1a5bfe1baba5528559c60b83eb9fd0f8
2+
refs/heads/master: d5cf72639e67e133bfb9f491a74aa786c009d856
33
refs/heads/travis: e21ee7b88a5edc3f3d8c71f90c3fc32abf7e8dd6
44
refs/heads/gh-pages: 4e0561bb4504bf647db669a14417b2b2c87ba45d
55
refs/heads/pubsub-alpha: 1a0e970f265af871e02274085b9662b3fe29058b

trunk/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)