Apache Nutch is an extensible and scalable web crawler
NUTCH-1010 ContentLength not trimmed
Markus Jelsma445eed4cf9dc
diff --git a/CHANGES.txt b/CHANGES.txtindex c0f54331e..8123f0833 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogRelease 2.0 - Current Development+* NUTCH-1010 ContentLength not trimmed (markus)+* NUTCH-995 Generate POM file using the Ivy makepom task (mattmann, jnioche, Gabriele Kahlout)* NUTCH-1003 task 'package' does not reflect the new organisation of the code (jnioche)diff --git a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.javaindex a5c6b8f80..0d222a33f 100644--- a/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java+++ b/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java@@ -143,7 +143,8 @@ public class MoreIndexingFilter implements IndexingFilter {Utf8 contentLength = page.getFromHeaders(new Utf8(HttpHeaders.CONTENT_LENGTH));if (contentLength != null)- doc.add("contentLength", contentLength.toString());+ // NUTCH-1010 ContentLength not trimmed+ doc.add("contentLength", contentLength.toString().trim());return doc;}