Index: src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java
===================================================================
--- src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java	(revision 1335354)
+++ src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java	(working copy)
@@ -228,11 +228,21 @@
     ByteArrayOutputStream out = new ByteArrayOutputStream(Http.BUFFER_SIZE);
     byte[] bytes = new byte[Http.BUFFER_SIZE];
     int length = 0;                           // read content
-    for (int i = in.read(bytes); i != -1 && length + i <= contentLength; i = in.read(bytes)) {
 
-      out.write(bytes, 0, i);
-      length += i;
+    try {
+      for (int i = in.read(bytes); i != -1 && length + i <= contentLength; i = in.read(bytes)) {
+        out.write(bytes, 0, i);
+        length += i;
+      }
+    } catch (IOException e) {
+      // If no Content-Length header was received and we're not reading
+      // chunked data and we did receieve some bytes then continue and
+      // accept what we got. See NUTCH-1342
+      if (contentLengthString != null && length == 0) {
+        throw e;
+      }
     }
+
     content = out.toByteArray();
   }
 
