Skip to content

Commit 6bb1ae7

Browse files
committed
Improve GCS signUrlOption javadoc
1 parent 6af56e7 commit 6bb1ae7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • google-cloud-storage/src/main/java/com/google/cloud/storage

google-cloud-storage/src/main/java/com/google/cloud/storage/Storage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -806,7 +806,7 @@ Object getValue() {
806806
}
807807

808808
/**
809-
* The HTTP method to be used with the signed URL.
809+
* The HTTP method to be used with the signed URL. Defaults to GET.
810810
*/
811811
public static SignUrlOption httpMethod(HttpMethod httpMethod) {
812812
return new SignUrlOption(Option.HTTP_METHOD, httpMethod.name());
@@ -815,6 +815,7 @@ public static SignUrlOption httpMethod(HttpMethod httpMethod) {
815815
/**
816816
* Use it if signature should include the blob's content-type.
817817
* When used, users of the signed URL should include the blob's content-type with their request.
818+
* If using this URL from a browser, you must include a content type that matches what the browser will send.
818819
*/
819820
public static SignUrlOption withContentType() {
820821
return new SignUrlOption(Option.CONTENT_TYPE, true);

0 commit comments

Comments
 (0)