Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
*) Force download of seed file when checking upload success
hermensb08af0c2cb10
diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.javaindex b7699eec9..248e8a642 100644--- a/source/de/anomic/http/httpc.java+++ b/source/de/anomic/http/httpc.java@@ -1078,7 +1078,7 @@ do uploadcon = httpc.getInstance(host, port, timeout, ssl, theRemoteProxyConfig);}- httpc.response res = con.GET(path, null);+ httpc.response res = con.GET(path, requestHeader);if (res.status.startsWith("2")) {return res.writeContent();}diff --git a/source/de/anomic/yacy/yacySeedDB.java b/source/de/anomic/yacy/yacySeedDB.javaindex cf0cbcc6a..aa3c7117b 100644--- a/source/de/anomic/yacy/yacySeedDB.java+++ b/source/de/anomic/yacy/yacySeedDB.java@@ -687,12 +687,17 @@ public final class yacySeedDB {private boolean checkCache(ArrayList uv, URL seedURL) throws IOException {// check if the result can be retrieved again// TODO: should we check the useProxy4Yacy option here???+ httpHeader reqHeader = new httpHeader();+ reqHeader.put(httpHeader.PRAGMA, "no-cache");+ reqHeader.put(httpHeader.CACHE_CONTROL, "no-cache"); // httpc uses HTTP/1.0 is this necessa+ry?ArrayList check = httpc.wget(seedURL,10000,null,null,- sb.remoteProxyConfig+ sb.remoteProxyConfig,+ reqHeader);if (check == null) {@@ -815,4 +820,4 @@ public final class yacySeedDB {}-}\ No newline at end of file+}