*) Force download of seed file when checking upload success

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1441 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
hermens 19 years ago
parent 66c889138e
commit b08af0c2cb

@ -1078,7 +1078,7 @@ do upload
con = httpc.getInstance(host, port, timeout, ssl, theRemoteProxyConfig); con = 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")) { if (res.status.startsWith("2")) {
return res.writeContent(); return res.writeContent();
} }

@ -687,12 +687,17 @@ public final class yacySeedDB {
private boolean checkCache(ArrayList uv, URL seedURL) throws IOException { private boolean checkCache(ArrayList uv, URL seedURL) throws IOException {
// check if the result can be retrieved again // check if the result can be retrieved again
// TODO: should we check the useProxy4Yacy option here??? // 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( ArrayList check = httpc.wget(
seedURL, seedURL,
10000, 10000,
null, null,
null, null,
sb.remoteProxyConfig sb.remoteProxyConfig,
reqHeader
); );
if (check == null) { if (check == null) {
@ -815,4 +820,4 @@ public final class yacySeedDB {
} }
} }

Loading…
Cancel
Save