Merge pull request #91 from adam-miller/FetchHTTP_Empty_Content_Length

FetchHTTP.java
This commit is contained in:
Kenji Nagahashi
2014-08-27 17:43:34 -07:00
@@ -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 {