Apache Nutch is an extensible and scalable web crawler
set agent name for test because it is no longer set by default
Sami Sirena24934409db5
diff --git a/src/test/org/apache/nutch/protocol/TestProtocolFactory.java b/src/test/org/apache/nutch/protocol/TestProtocolFactory.javaindex 9161c887c..c15ee917c 100644--- a/src/test/org/apache/nutch/protocol/TestProtocolFactory.java+++ b/src/test/org/apache/nutch/protocol/TestProtocolFactory.java@@ -24,6 +24,7 @@ public class TestProtocolFactory extends TestCase {public void testGetProtocol(){Configuration conf=NutchConfiguration.create();+ conf.set("http.agent.name", "test-bot");ProtocolFactory factory=new ProtocolFactory(conf);