PublicSuffixMatcher.java (httpcomponents-client-4.5.9-src) | : | PublicSuffixMatcher.java (httpcomponents-client-4.5.10-src) | ||
---|---|---|---|---|
skipping to change at line 169 | skipping to change at line 169 | |||
final String nextSegment = nextdot != -1 ? segment.substring(nextdot + 1) : null; | final String nextSegment = nextdot != -1 ? segment.substring(nextdot + 1) : null; | |||
if (nextSegment != null) { | if (nextSegment != null) { | |||
if (hasRule("*." + IDN.toUnicode(nextSegment), expectedType)) { | if (hasRule("*." + IDN.toUnicode(nextSegment), expectedType)) { | |||
return result; | return result; | |||
} | } | |||
} | } | |||
result = segment; | result = segment; | |||
segment = nextSegment; | segment = nextSegment; | |||
} | } | |||
return normalized; | return result; | |||
} | } | |||
/** | /** | |||
* Tests whether the given domain matches any of entry from the public suffi x list. | * Tests whether the given domain matches any of entry from the public suffi x list. | |||
*/ | */ | |||
public boolean matches(final String domain) { | public boolean matches(final String domain) { | |||
return matches(domain, null); | return matches(domain, null); | |||
} | } | |||
/** | /** | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |