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