FetchHTTP.java

Handle response header with a null or empty Content-Length
This commit is contained in:
Adam Miller
2014-08-27 17:14:05 -07:00
parent 9e1ade3de6
commit bf248f407b
@@ -669,7 +669,7 @@ public class FetchHTTP extends Processor implements Lifecycle {
long contentLength = -1l;
Header h = response.getLastHeader("content-length");
if (h != null) {
if (h != null && h.getValue().trim().length()>0) {
contentLength = Long.parseLong(h.getValue());
}
try {