Skip to content

Commit cb0eb49

Browse files
authored
make storage batch request honor options.getHost() (#3340)
1 parent 15d9861 commit cb0eb49

File tree

1 file changed

+1
-1
lines changed
  • google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1

1 file changed

+1
-1
lines changed

google-cloud-clients/google-cloud-storage/src/main/java/com/google/cloud/storage/spi/v1/HttpStorageRpc.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public void submit() {
188188
// TODO(hailongwen@): instrument 'google-api-java-client' to further break down the span.
189189
// Here we only add a annotation to at least know how much time each batch takes.
190190
span.addAnnotation("Execute batch request");
191-
batch.setBatchUrl(new GenericUrl("https://www.googleapis.com/batch/storage/v1"));
191+
batch.setBatchUrl(new GenericUrl(String.format("%s/batch/storage/v1", options.getHost())));
192192
batch.execute();
193193
}
194194
} catch (IOException ex) {

0 commit comments

Comments
 (0)