cf70a2
From d9f08c36a39b035ec70a37cb6aac5f980cc57054 Mon Sep 17 00:00:00 2001
cf70a2
From: Mikolaj Izdebski <mizdebsk@redhat.com>
cf70a2
Date: Tue, 20 Jan 2015 16:04:31 +0100
cf70a2
Subject: [PATCH 1/2] Use system copy of effective_tld_names.dat
cf70a2
cf70a2
---
cf70a2
 .../apache/http/conn/util/PublicSuffixMatcherLoader.java   | 7 +++----
cf70a2
 1 file changed, 3 insertions(+), 4 deletions(-)
cf70a2
cf70a2
diff --git a/httpclient/src/main/java/org/apache/http/conn/util/PublicSuffixMatcherLoader.java b/httpclient/src/main/java/org/apache/http/conn/util/PublicSuffixMatcherLoader.java
cf70a2
index 8783c5b..c858220 100644
cf70a2
--- a/httpclient/src/main/java/org/apache/http/conn/util/PublicSuffixMatcherLoader.java
cf70a2
+++ b/httpclient/src/main/java/org/apache/http/conn/util/PublicSuffixMatcherLoader.java
cf70a2
@@ -82,11 +82,10 @@ public final class PublicSuffixMatcherLoader {
cf70a2
         if (DEFAULT_INSTANCE == null) {
cf70a2
             synchronized (PublicSuffixMatcherLoader.class) {
cf70a2
                 if (DEFAULT_INSTANCE == null){
cf70a2
-                    final URL url = PublicSuffixMatcherLoader.class.getResource(
cf70a2
-                            "/mozilla/public-suffix-list.txt");
cf70a2
-                    if (url != null) {
cf70a2
+                    final File file = new File("/usr/share/publicsuffix/effective_tld_names.dat");
cf70a2
+                    if (file.exists()) {
cf70a2
                         try {
cf70a2
-                            DEFAULT_INSTANCE = load(url);
cf70a2
+                            DEFAULT_INSTANCE = load(file);
cf70a2
                         } catch (final IOException ex) {
cf70a2
                             // Should never happen
cf70a2
                             final Log log = LogFactory.getLog(PublicSuffixMatcherLoader.class);
cf70a2
-- 
cf70a2
2.19.1
cf70a2