Skip to content

Commit

Permalink
handle url setHostScheme
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Nov 15, 2023
1 parent cba5907 commit 76c8940
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/qiniu/util/UrlUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,6 @@ public static String setHostScheme(String host, boolean useHttps) {
return host;
}

return useHttps ? "https://" : "http://" + host;
return (useHttps ? "https://" : "http://") + host;
}
}

0 comments on commit 76c8940

Please sign in to comment.