*) Printout date and system name on proxy error page

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@581 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 20 years ago
parent 6c8b67d583
commit 858cb983d7

@ -73,6 +73,11 @@
</td>
</tr>
#(/printStackTrace)#
<tr><td><hr></td></tr>
<tr>
<td>Generated #[date]# by #[peerName]#.yacy
</td>
</tr>
</table>
</body>

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

Loading…
Cancel
Save