Skip to content

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

*) Printout date and system name on proxy error page

theli858cb983d745
diff --git a/htroot/proxymsg/error.html b/htroot/proxymsg/error.html
index 394c53ad4..d39e76547 100644
--- a/htroot/proxymsg/error.html
+++ b/htroot/proxymsg/error.html
@@ -73,6 +73,11 @@
</td>
</tr>
#(/printStackTrace)#
+<tr><td><hr></td></tr>
+<tr>
+ <td>Generated #[date]# by #[peerName]#.yacy
+ </td>
+</tr>
</table>
</body>
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index 37396988e..d3d40f9c6 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -61,6 +61,7 @@ import java.util.Iterator;
import java.util.Properties;
import java.util.StringTokenizer;
+import de.anomic.plasma.plasmaSwitchboard;
import de.anomic.server.serverByteBuffer;
import de.anomic.server.serverCodings;
import de.anomic.server.serverCore;
@@ -1152,6 +1153,11 @@ public final class httpd implements serverHandler {
tp.put("printStackTrace",0);
}
+ // Generated Tue, 23 Aug 2005 11:19:14 GMT by brain.wg (squid/2.5.STABLE3)
+ // adding some system information
+ String systemDate = httpc.dateString(httpc.nowDate());
+ tp.put("date",systemDate);
+
// rewrite the file
File htRootPath = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot"));
@@ -1165,7 +1171,7 @@ public final class httpd implements serverHandler {
o.close(); o = null;
httpHeader header = new httpHeader();
- header.put(httpHeader.DATE, httpc.dateString(httpc.nowDate()));
+ header.put(httpHeader.DATE, systemDate);
header.put(httpHeader.CONTENT_TYPE, "text/html");
header.put(httpHeader.CONTENT_LENGTH, Integer.toString(result.length));
header.put(httpHeader.PRAGMA, "no-cache");