You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hc.apache.org by ol...@apache.org on 2015/10/03 15:46:01 UTC

svn commit: r1706582 - /httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/PublicSuffixDomainFilter.java

Author: olegk
Date: Sat Oct  3 13:46:01 2015
New Revision: 1706582

URL: http://svn.apache.org/viewvc?rev=1706582&view=rev
Log:
HTTPCLIENT-1685: PublicSuffixDomainFilter to ignore local hosts and local domains (follow-up)

Modified:
    httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/PublicSuffixDomainFilter.java

Modified: httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/PublicSuffixDomainFilter.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/PublicSuffixDomainFilter.java?rev=1706582&r1=1706581&r2=1706582&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/PublicSuffixDomainFilter.java (original)
+++ httpcomponents/httpclient/branches/4.5.x/httpclient/src/main/java/org/apache/http/impl/cookie/PublicSuffixDomainFilter.java Sat Oct  3 13:46:01 2015
@@ -97,6 +97,12 @@ public class PublicSuffixDomainFilter im
                     return false;
                 }
             }
+        } else {
+            if (!host.equalsIgnoreCase(origin.getHost())) {
+                if (this.publicSuffixMatcher.matches(host)) {
+                    return false;
+                }
+            }
         }
         return handler.match(cookie, origin);
     }