Skip to content

Commit

Permalink
Update HTMLUnit, support null depth
Browse files Browse the repository at this point in the history
  • Loading branch information
emmanuel-keller committed Jun 4, 2017
1 parent 63eb2cf commit b87c83b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

<properties>
<selenium.version>3.4.0</selenium.version>
<htmlunit.version>2.26</htmlunit.version>
<htmlunit.version>2.27</htmlunit.version>
<jetty.version>9.4.3.v20170317</jetty.version>
</properties>

Expand Down Expand Up @@ -132,7 +132,7 @@
<dependency>
<groupId>com.codeborne</groupId>
<artifactId>phantomjsdriver</artifactId>
<version>1.4.2</version>
<version>1.4.3</version>
<exclusions>
<exclusion>
<artifactId>selenium-api</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/qwazr/crawler/web/WebCrawlThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ private void crawlStart(final Set<URI> crawledURIs, final CrawlProvider crawlPro
private void crawlUrlMap(Set<URI> crawledURIs, Map<String, Integer> urlMap) {
urlMap.forEach((uri, depth) -> {
try {
crawlOne(crawledURIs, new GetProvider(uri), null, depth);
crawlOne(crawledURIs, new GetProvider(uri), null, depth == null ? 0 : depth);
} catch (URISyntaxException e) {
LOGGER.warn("Malformed URI: " + uri);
} catch (InterruptedException e) {
Expand Down

0 comments on commit b87c83b

Please sign in to comment.