You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by sn...@apache.org on 2018/03/06 08:36:11 UTC
[nutch] branch 2.x updated: NUTCH-2520 Use default value for
Accept-Charset if http.accept.charset is undefined
This is an automated email from the ASF dual-hosted git repository.
snagel pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/nutch.git
The following commit(s) were added to refs/heads/2.x by this push:
new 4c72756 NUTCH-2520 Use default value for Accept-Charset if http.accept.charset is undefined
4c72756 is described below
commit 4c7275684d5b88cedc39a212e5867d80643f26c3
Author: Sebastian Nagel <sn...@apache.org>
AuthorDate: Tue Mar 6 09:31:05 2018 +0100
NUTCH-2520 Use default value for Accept-Charset if http.accept.charset is undefined
---
.../lib-http/src/java/org/apache/nutch/protocol/http/api/HttpBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 734e6de..971241f 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
@@ -146,7 +146,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();
this.mimeTypes = new MimeUtil(conf);
this.useHttp11 = conf.getBoolean("http.useHttp11", false);
--
To stop receiving notification emails like this one, please contact
snagel@apache.org.