Index: trunk/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpResponse.java
===================================================================
--- trunk/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpResponse.java	(Revision 1160266)
+++ trunk/src/plugin/protocol-httpclient/src/java/org/apache/nutch/protocol/httpclient/HttpResponse.java	(Arbeitskopie)
@@ -124,7 +124,7 @@
         int totalRead = 0;
         ByteArrayOutputStream out = new ByteArrayOutputStream();
         while ((bufferFilled = in.read(buffer, 0, buffer.length)) != -1
-            && totalRead + bufferFilled < contentLength) {
+            && totalRead + bufferFilled <= contentLength) {
           totalRead += bufferFilled;
           out.write(buffer, 0, bufferFilled);
         }
