added also a default accept field to robots.txt downloads

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@8049 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
orbiter 13 years ago
parent f183d3822c
commit 97d1347adb

@ -49,6 +49,7 @@ import net.yacy.kelondro.logging.Log;
import org.apache.log4j.Logger; import org.apache.log4j.Logger;
import de.anomic.crawler.retrieval.HTTPLoader;
import de.anomic.data.WorkTables; import de.anomic.data.WorkTables;
public class RobotsTxt { public class RobotsTxt {
@ -308,7 +309,7 @@ public class RobotsTxt {
// adding referer // adding referer
reqHeaders.put(RequestHeader.REFERER, (MultiProtocolURI.newURL(robotsURL,"/")).toNormalform(true, true)); reqHeaders.put(RequestHeader.REFERER, (MultiProtocolURI.newURL(robotsURL,"/")).toNormalform(true, true));
reqHeaders.put(RequestHeader.ACCEPT, HTTPLoader.DEFAULT_ACCEPT);
if (entry != null) { if (entry != null) {
oldEtag = entry.getETag(); oldEtag = entry.getETag();
reqHeaders = new RequestHeader(); reqHeaders = new RequestHeader();

Loading…
Cancel
Save