- Don't save config when checking for updates on configupdate.jsp - Rework ConfigRestartBean and tag - More tag fixups - Add lang=xx for testing - Add file for additional tagged strings
26 lines
872 B
Plaintext
26 lines
872 B
Plaintext
<%
|
|
/*
|
|
* USE CAUTION WHEN EDITING
|
|
* Trailing whitespace OR NEWLINE on the last line will cause
|
|
* IllegalStateExceptions !!!
|
|
*
|
|
* Do not tag this file for translation.
|
|
*/
|
|
|
|
String uri = request.getRequestURI();
|
|
if (uri.endsWith(".css")) {
|
|
response.setContentType("text/css");
|
|
} else if (uri.endsWith(".png")) {
|
|
response.setContentType("image/png");
|
|
} else if (uri.endsWith(".gif")) {
|
|
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
|
|
String base = net.i2p.I2PAppContext.getGlobalContext().getBaseDir().getAbsolutePath() +
|
|
java.io.File.separatorChar + "docs";
|
|
net.i2p.util.FileUtil.readFile(uri, base, response.getOutputStream());
|
|
%> |