Skip to content

Commit e333f47

Browse files
GavinTianYangchingor13
authored andcommitted
Update HttpStorageRpc.java (#4109)
1 parent fac25a3 commit e333f47

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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
@@ -718,7 +718,7 @@ public String open(StorageObject object, Map<Option, ?> options) {
718718
String scheme = url.getScheme();
719719
String host = url.getHost();
720720
int port = url.getPort();
721-
port = port < 0 ? port : url.toURL().getDefaultPort();
721+
port = port > 0 ? port : url.toURL().getDefaultPort();
722722
String path = "/upload" + url.getRawPath();
723723
url = new GenericUrl(scheme + "://" + host + ":" + port + path);
724724
url.set("uploadType", "resumable");

0 commit comments

Comments
 (0)