Commit b249e497 authored by yihua.huang's avatar yihua.huang

[Bugfix]loop error when add TargetRequest #99

parent 3a79b1b6
...@@ -127,7 +127,7 @@ public class Page { ...@@ -127,7 +127,7 @@ public class Page {
synchronized (targetRequests) { synchronized (targetRequests) {
for (String s : requests) { for (String s : requests) {
if (StringUtils.isBlank(s) || s.equals("#") || s.startsWith("javascript:")) { if (StringUtils.isBlank(s) || s.equals("#") || s.startsWith("javascript:")) {
break; continue;
} }
s = UrlUtils.canonicalizeUrl(s, url.toString()); s = UrlUtils.canonicalizeUrl(s, url.toString());
targetRequests.add(new Request(s).setPriority(priority)); targetRequests.add(new Request(s).setPriority(priority));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment