Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-2520 Use default value for Accept-Charset if http.accept.charset is undefined

Sebastian Nagel100816fac9cd
diff --git 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
index b8d2c6fa5..d218cbc98 100644
--- 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
@@ -161,7 +161,7 @@ public abstract class HttpBase implements Protocol {
conf.get("http.agent.url"), conf.get("http.agent.email"));
this.acceptLanguage = conf.get("http.accept.language", acceptLanguage)
.trim();
- this.acceptCharset = conf.get("http.accept.charset", accept).trim();
+ this.acceptCharset = conf.get("http.accept.charset", acceptCharset).trim();
this.accept = conf.get("http.accept", accept).trim();
// backward-compatible default setting
this.useHttp11 = conf.getBoolean("http.useHttp11", false);