[Bugfix]loop error when add TargetRequest #99

master
yihua.huang 2014-04-13 23:04:09 +08:00
parent 3a79b1b64a
commit b249e49748
1 changed files with 1 additions and 1 deletions

View File

@ -127,7 +127,7 @@ public class Page {
synchronized (targetRequests) {
for (String s : requests) {
if (StringUtils.isBlank(s) || s.equals("#") || s.startsWith("javascript:")) {
break;
continue;
}
s = UrlUtils.canonicalizeUrl(s, url.toString());
targetRequests.add(new Request(s).setPriority(priority));