Skip to content

Commit ffad4f3

Browse files
committed
Merge remote-tracking branch 'origin/fix-bad-hostname-parsing' into fix-bad-hostname-parsing
2 parents 6ef09ed + e89d1e2 commit ffad4f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/main/java/io/opentdf/platform/sdk/AddressNormalizer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ static String normalizeAddress(String urlString, boolean usePlaintext) {
2222

2323
final String scheme = usePlaintext ? "http" : "https";
2424
if (uri.getHost() == null) {
25-
// if there is no host and no scheme, then we assume the input is a bare hostname
25+
// if there is no host and no scheme, then we assume the input is a hostname with no port or scheme
2626
if (uri.getScheme() == null) {
2727
try {
2828
uri = new URI(scheme, null, uri.getSchemeSpecificPart(), -1, null, null, null);

0 commit comments

Comments
 (0)