Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) Bugfix in httpc.java - Requestheader was not passed to the underlying post function properly - Bug seems not to have caused any side-effect until yet

theli6e3201b74d67
diff --git a/htroot/Network.java b/htroot/Network.java
index d87f52c21..54daa380f 100644
--- a/htroot/Network.java
+++ b/htroot/Network.java
@@ -183,7 +183,7 @@ public class Network {
final int added = yacyClient.publishMySeed(peer.getAddress(), peer.hash);
- if (added < 0) {
+ if (added <= 0) {
prop.put("table_comment",1);
prop.put("table_comment_status","publish: disconnected peer '" + peer.getName() + "/" + post.get("peerHash") + "' from " + peer.getAddress());
} else {
diff --git a/source/de/anomic/http/httpc.java b/source/de/anomic/http/httpc.java
index 93129eaf5..9e752c88d 100644
--- a/source/de/anomic/http/httpc.java
+++ b/source/de/anomic/http/httpc.java
@@ -953,7 +953,7 @@ do upload
con = httpc.getInstance(host, port, timeout, ssl);
else
con = httpc.getInstance(host, port, timeout, ssl, proxyHost, proxyPort);
- httpc.response res = con.POST(path, null, props, null);
+ httpc.response res = con.POST(path, requestHeader, props, null);
//System.out.println("response=" + res.toString());
if (res.status.startsWith("2")) {
diff --git a/source/de/anomic/http/httpdFileHandler.java b/source/de/anomic/http/httpdFileHandler.java
index 2823e2225..c57c40784 100644
--- a/source/de/anomic/http/httpdFileHandler.java
+++ b/source/de/anomic/http/httpdFileHandler.java
@@ -567,6 +567,7 @@ public final class httpdFileHandler extends httpdAbstractHandler implements http
e.getTargetException().toString() + ":" +
e.getTargetException().getMessage(),e);
targetClass = null;
+ throw e;
}
targetDate = new Date(System.currentTimeMillis());
}