Skip to content

Commit

Permalink
Update HttpStorageRpc.java (#4109)
Browse files Browse the repository at this point in the history
  • Loading branch information
GavinTianYang authored and chingor13 committed Nov 29, 2018
1 parent fac25a3 commit e333f47
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public String open(StorageObject object, Map<Option, ?> options) {
String scheme = url.getScheme();
String host = url.getHost();
int port = url.getPort();
port = port < 0 ? port : url.toURL().getDefaultPort();
port = port > 0 ? port : url.toURL().getDefaultPort();
String path = "/upload" + url.getRawPath();
url = new GenericUrl(scheme + "://" + host + ":" + port + path);
url.set("uploadType", "resumable");
Expand Down

0 comments on commit e333f47

Please sign in to comment.