Skip to content

Commit

Permalink
*) Bugfix in httpc.java
Browse files Browse the repository at this point in the history
   - 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
  • Loading branch information
theli committed Oct 20, 2005
1 parent c2ba2d0 commit 6e3201b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion htroot/Network.java
Expand Up @@ -183,7 +183,7 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve

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 {
Expand Down
2 changes: 1 addition & 1 deletion source/de/anomic/http/httpc.java
Expand Up @@ -953,7 +953,7 @@ public static byte[] singlePOST(String host, int port, String path, int timeout,
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")) {
Expand Down
1 change: 1 addition & 0 deletions source/de/anomic/http/httpdFileHandler.java
Expand Up @@ -567,6 +567,7 @@ public void doResponse(Properties conProp, httpHeader requestHeader, OutputStrea
e.getTargetException().toString() + ":" +
e.getTargetException().getMessage(),e);
targetClass = null;
throw e;
}
targetDate = new Date(System.currentTimeMillis());
}
Expand Down

0 comments on commit 6e3201b

Please sign in to comment.