Skip to content

Commit

Permalink
Fix the docstring (#6788)
Browse files Browse the repository at this point in the history
  • Loading branch information
athakor committed Nov 14, 2019
1 parent e3074e6 commit f5879cd
Showing 1 changed file with 5 additions and 6 deletions.
Expand Up @@ -1123,12 +1123,11 @@ public static SignUrlOption signWith(ServiceAccountSigner signer) {
}

/**
* Use a different host name than the default host name 'https://storage.googleapis.com'. This
* must also include the scheme component of the URI. This option is particularly useful for
* developers to point requests to an alternate endpoint (e.g. a staging environment or sending
* requests through VPC). Note that if using this with the {@code withVirtualHostedStyle()}
* method, you should omit the bucket name from the hostname, as it automatically gets prepended
* to the hostname for virtual hosted-style URLs.
* Use a different host name than the default host name 'storage.googleapis.com'. This option is
* particularly useful for developers to point requests to an alternate endpoint (e.g. a staging
* environment or sending requests through VPC). Note that if using this with the {@code
* withVirtualHostedStyle()} method, you should omit the bucket name from the hostname, as it
* automatically gets prepended to the hostname for virtual hosted-style URLs.
*/
public static SignUrlOption withHostName(String hostName) {
return new SignUrlOption(Option.HOST_NAME, hostName);
Expand Down

0 comments on commit f5879cd

Please sign in to comment.