Skip to content

Commit

Permalink
Update PageFetcher.java
Browse files Browse the repository at this point in the history
  • Loading branch information
albert0815 committed Jun 1, 2015
1 parent be02e29 commit 2adfeb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ public PageFetchResult fetchPage(WebURL webUrl)
}
}
if (size > config.getMaxDownloadSize()) {
//fix issue #52 - consume entity
response.close();
throw new PageBiggerThanMaxSizeException(size);
}
}
Expand Down Expand Up @@ -307,4 +309,4 @@ protected HttpUriRequest newHttpUriRequest(String url) {
return new HttpGet(url);
}

}
}

0 comments on commit 2adfeb3

Please sign in to comment.