20 lines
543 B
Plaintext
20 lines
543 B
Plaintext
<%
|
|
/*
|
|
* USE CAUTION WHEN EDITING
|
|
* Trailing whitespace OR NEWLINE on the last line will cause
|
|
* IllegalStateExceptions !!!
|
|
*/
|
|
|
|
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");
|
|
}
|
|
|
|
net.i2p.util.FileUtil.readFile(uri, "./docs", response.getOutputStream());
|
|
%> |