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 2adfeb3 commit 4fd9c84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/uci/ics/crawler4j/fetcher/PageFetcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import edu.uci.ics.crawler4j.crawler.authentication.NtAuthInfo;
import org.apache.http.Header;
import org.apache.http.HttpHost;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.NameValuePair;
import org.apache.http.auth.AuthScope;
Expand Down Expand Up @@ -234,7 +234,7 @@ public PageFetchResult fetchPage(WebURL webUrl)
lastFetchTime = (new Date()).getTime();
}

HttpResponse response = httpClient.execute(request);
CloseableHttpResponse response = httpClient.execute(request);
fetchResult.setEntity(response.getEntity());
fetchResult.setResponseHeaders(response.getAllHeaders());

Expand Down

0 comments on commit 4fd9c84

Please sign in to comment.