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 1160712)
+++ src/plugin/protocol-http/src/java/org/apache/nutch/protocol/http/HttpResponse.java	(working copy)
@@ -213,7 +213,7 @@
     if (contentLengthString != null) {
       contentLengthString = contentLengthString.trim();
       try {
-        contentLength = Integer.parseInt(contentLengthString);
+      	if (!contentLengthString.isEmpty()) contentLength = Integer.parseInt(contentLengthString);
       } catch (NumberFormatException e) {
         throw new HttpException("bad content length: "+contentLengthString);
       }
