Skip to content

armgit / nutch

Public Imported from GitHub
0

Apache Nutch is an extensible and scalable web crawler

NUTCH-1715 RobotRulesParser adds additional * to the robots name

Tejas Patild7fb075590a2
diff --git a/CHANGES.txt b/CHANGES.txt
index c77e60376..50a105199 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -2,6 +2,8 @@ Nutch Change Log
Nutch Development Trunk
+* NUTCH-1715 RobotRulesParser adds additional '*' to the robots name (tejasp)
+
* NUTCH-356 Plugin repository cache can lead to memory leak (Enrico Triolo, Doğacan Güney via markus)
* NUTCH-1413 Record response time (Yasin Kılınç, Talat Uyarer, snagel)
diff --git a/src/java/org/apache/nutch/protocol/RobotRulesParser.java b/src/java/org/apache/nutch/protocol/RobotRulesParser.java
index 6a6fa4418..0639c8e57 100644
--- a/src/java/org/apache/nutch/protocol/RobotRulesParser.java
+++ b/src/java/org/apache/nutch/protocol/RobotRulesParser.java
@@ -121,8 +121,6 @@ public abstract class RobotRulesParser implements Configurable {
combinedAgentsString.append(", " + agents.get(index));
}
- // always make sure "*" is included in the end
- combinedAgentsString.append(", *");
this.agentNames = combinedAgentsString.toString();
}
}