Apache Nutch is an extensible and scalable web crawler
Merge pull request #338 from sebastian-nagel/NUTCH-2578
Sebastian Nagel8e4dd318f5b3
diff --cc src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.javaindex 1cb2bb151,145a8aefa..0bfbff4cc--- a/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java+++ b/src/plugin/lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java@@@ -185,13 -166,10 +193,14 @@@ public abstract class HttpBase implemen.trim();this.acceptCharset = conf.get("http.accept.charset", acceptCharset).trim();this.accept = conf.get("http.accept", accept).trim();+ this.mimeTypes = new MimeUtil(conf);// backward-compatible default settingthis.useHttp11 = conf.getBoolean("http.useHttp11", false);+ this.useHttp2 = conf.getBoolean("http.useHttp2", false);this.responseTime = conf.getBoolean("http.store.responsetime", true);+ this.storeIPAddress = conf.getBoolean("store.ip.address", false);+ this.storeHttpRequest = conf.getBoolean("store.http.request", false);+ this.storeHttpHeaders = conf.getBoolean("store.http.headers", false);this.enableIfModifiedsinceHeader = conf.getBoolean("http.enable.if.modified.since.header", true);this.enableCookieHeader = conf.getBoolean("http.enable.cookie.header", true);this.robots.setConf(conf);