* Console: Move favicon.ico and i2plogo.png out of the .war

so that the HTTP proxy can use them directly;
      proxy error pages must be updated next
This commit is contained in:
zzz
2009-06-28 12:50:33 +00:00
parent 5906fb7139
commit 77ce768cb4
7 changed files with 12 additions and 3 deletions

View File

@ -14,7 +14,9 @@ if (uri.endsWith(".css")) {
response.setContentType("image/gif");
} else if (uri.endsWith(".jpg")) {
response.setContentType("image/jpeg");
} else if (uri.endsWith(".ico")) {
response.setContentType("image/x-icon");
}
response.setHeader("Cache-Control", "max-age=86400"); // cache for a day
net.i2p.util.FileUtil.readFile(uri, "./docs", response.getOutputStream());
%>