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:43 UTC

svn commit: r1139308 - in /nutch/trunk: CHANGES.txt src/plugin/index-more/src/java/org/apache/nutch/indexer/more/MoreIndexingFilter.java

Author: markus
Date: Fri Jun 24 13:56:42 2011
New Revision: 1139308

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

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

Modified: nutch/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/nutch/trunk/CHANGES.txt?rev=1139308&r1=1139307&r2=1139308&view=diff
==============================================================================
--- nutch/trunk/CHANGES.txt (original)
+++ nutch/trunk/CHANGES.txt Fri Jun 24 13:56:42 2011
@@ -2,6 +2,8 @@ Nutch Change Log
 
 Release 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)

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