*) 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

*) Bugfix for manual peer ping functionality

*) Bugfix for UnresolvedPattern Problem if an Exception occurred in a servlet.
   See: http://www.yacy-forum.de/viewtopic.php?t=1353

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@963 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent c2ba2d00e6
commit 6e3201b74d

@ -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 {

@ -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")) {

@ -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());
}

Loading…
Cancel
Save