mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-27 08:05:46 +00:00
Merge pull request #91 from adam-miller/FetchHTTP_Empty_Content_Length
FetchHTTP.java
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user