You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by ma...@apache.org on 2011/06/24 15:56:27 UTC

svn commit: r1139307 - in /nutch/branches/branch-1.4: CHANGES.txt src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java

Author: markus
Date: Fri Jun 24 13:56:27 2011
New Revision: 1139307

URL: http://svn.apache.org/viewvc?rev=1139307&view=rev
Log:
NUTCH-1010 ContentLength not trimmed

Modified:
    nutch/branches/branch-1.4/CHANGES.txt
    nutch/branches/branch-1.4/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java

Modified: nutch/branches/branch-1.4/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/branches/branch-1.4/CHANGES.txt?rev=1139307&r1=1139306&r2=1139307&view=diff
==============================================================================
--- nutch/branches/branch-1.4/CHANGES.txt (original)
+++ nutch/branches/branch-1.4/CHANGES.txt Fri Jun 24 13:56:27 2011
@@ -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)

Modified: nutch/branches/branch-1.4/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java
URL: http://svn.apache.org/viewvc/nutch/branches/branch-1.4/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java?rev=1139307&r1=1139306&r2=1139307&view=diff
==============================================================================
--- nutch/branches/branch-1.4/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java (original)
+++ nutch/branches/branch-1.4/src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java Fri Jun 24 13:56:27 2011
@@ -164,7 +164,8 @@ public class MoreIndexingFilter implemen
     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;
   }