You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "ok2c (via GitHub)" <gi...@apache.org> on 2025/03/28 17:38:33 UTC

Re: [PR] Update PublicSuffixMatcher to use "formal algorithm" [httpcomponents-client]

ok2c commented on code in PR #566:
URL: https://github.com/apache/httpcomponents-client/pull/566#discussion_r2019081568


##########
httpclient5/src/main/java/org/apache/hc/client5/http/psl/PublicSuffixMatcher.java:
##########
@@ -149,24 +148,30 @@ public String getDomainRoot(final String domain, final DomainType expectedType)
             }
             final DomainType domainRule = findEntry(rules, key);
             if (match(domainRule, expectedType)) {
-                if (domainRule == DomainType.PRIVATE) {

Review Comment:
   @massdosage Unfortunately this change introduced a regression in 5.4.x. There is a reason for special treatment of `DomainType.PRIVATE`, we just did not have a test case for it in our test suite.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org