Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-1010 ContentLength not trimmed

Markus Jelsmac11e5338bbb4
diff --git a/CHANGES.txt b/CHANGES.txt
index 668b99052..3b1a0947c 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,5 +1,9 @@
Nutch Change Log
+Release 1.4 - Current development
+
+* NUTCH-1010 ContentLength not trimmed (markus)
+
Release 1.3 - 6/4/2011
* NUTCH-995 Generate POM file using the Ivy makepom task (mattmann, jnioche, Gabriele Kahlout)
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.java
index 7a7842a08..4e7070cc1 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
@@ -164,7 +164,8 @@ public class MoreIndexingFilter implements IndexingFilter {
String contentLength = data.getMeta(Response.CONTENT_LENGTH);
if (contentLength != null)
- doc.add("contentLength", contentLength);
+ // NUTCH-1010 ContentLength not trimmed
+ doc.add("contentLength", contentLength.trim());
return doc;
}