git://git.nikiroo.be
/
fanfix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
weblib: add mimetypes for ico/png/java
[fanfix.git]
/
src
/
be
/
nikiroo
/
fanfix
/
library
/
WebLibraryServerHtml.java
diff --git
a/src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java
b/src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java
index d5ba533f27b5ac746c631ccb2457ea3c3aa3649f..5310c7c104953fdf90ed9ee97b2c4a6cd8c222a6 100644
(file)
--- a/
src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java
+++ b/
src/be/nikiroo/fanfix/library/WebLibraryServerHtml.java
@@
-247,6
+247,12
@@
abstract class WebLibraryServerHtml implements Runnable {
mimeType = "text/html";
} else if (uri.endsWith(".js")) {
mimeType = "text/javascript";
mimeType = "text/html";
} else if (uri.endsWith(".js")) {
mimeType = "text/javascript";
+ } else if (uri.endsWith(".png")) {
+ mimeType = "image/png";
+ } else if (uri.endsWith(".ico")) {
+ mimeType = "image/x-icon";
+ } else if (uri.endsWith(".java")) {
+ mimeType = "text/plain";
}
rep = newChunkedResponse(Status.OK, mimeType,
in);
}
rep = newChunkedResponse(Status.OK, mimeType,
in);