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

修复使用startUrls没有设置domain导致使用cookie空指针的问题#438

parent 407fbb61
...@@ -292,7 +292,7 @@ public class Spider implements Runnable, Task { ...@@ -292,7 +292,7 @@ public class Spider implements Runnable, Task {
} }
if (startRequests != null) { if (startRequests != null) {
for (Request request : startRequests) { for (Request request : startRequests) {
scheduler.push(request, this); addRequest(request);
} }
startRequests.clear(); startRequests.clear();
} }
......
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