"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "httpclient/src/main/java/org/apache/http/conn/util/PublicSuffixMatcher.java" between
httpcomponents-client-4.5.9-src.tar.gz and httpcomponents-client-4.5.10-src.tar.gz

About: HttpComponents is an Apache project responsible for creating and maintaining a toolset of low level Java components focused on HTTP and associated protocols. Java sources.

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

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)