Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
smal but important correction of last commit @ HTTPClient (if there is a response it really should be taken to its end)
sixcooler85c65475fa4c
diff --git a/source/net/yacy/cora/protocol/http/HTTPClient.java b/source/net/yacy/cora/protocol/http/HTTPClient.javaindex ec38df626..c12faa34f 100644--- a/source/net/yacy/cora/protocol/http/HTTPClient.java+++ b/source/net/yacy/cora/protocol/http/HTTPClient.java@@ -447,11 +447,11 @@ public class HTTPClient {byte[] content = null;try {execute(httpUriRequest);- if (httpResponse == null || httpResponse.getStatusLine().getStatusCode() != 200) return null;+ if (httpResponse == null) return null;// get the response bodyfinal HttpEntity httpEntity = httpResponse.getEntity();if (httpEntity != null) {- if (httpEntity.getContentLength() < maxBytes) {+ if (getStatusCode() == 200 && httpEntity.getContentLength() < maxBytes) {content = EntityUtils.toByteArray(httpEntity);}// TODO: The name of this method is misnomer.