summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPixel <Pixel>2001-11-26 15:30:51 +0000
committerPixel <Pixel>2001-11-26 15:30:51 +0000
commit3aa63fcbddbce8762ad0f3f54d90ad985c0f9c41 (patch)
treecd60cf2f7b3f13459f1038b8e2fd7d7623217d9c
parent4fba62636fa5183776fa53f2d98a51a7e7fbc794 (diff)
Grrr
-rw-r--r--lib/HttpServ.cc1
-rw-r--r--src/Main.cc5
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/HttpServ.cc b/lib/HttpServ.cc
index 9ab2959..1fa656a 100644
--- a/lib/HttpServ.cc
+++ b/lib/HttpServ.cc
@@ -369,6 +369,7 @@ String ProcessRequest::GetMime(const String & f) {
if (ext == "html") return "text/html";
if (ext == "gif") return "image/gif";
if (ext == "png") return "image/png";
+ if (ext == "class") return "application/octet-stream";
}
return "text/plain";
diff --git a/src/Main.cc b/src/Main.cc
index c396568..c9a7147 100644
--- a/src/Main.cc
+++ b/src/Main.cc
@@ -78,8 +78,9 @@ Action * a4 = new Form("Test de formulaire...", "menu4", "Rentrez des trucs...",
Action * a5 = new Confirm("Confirmation", "Oui ou non?", "menu5", 0, 0);
Action * java = new Message("Applet JAVA",
"
-<applet CODE=\"/image/HelloSwingApplet.class\" WIDTH = 400 HEIGHT = 50 >
-</applet>
+<APPLET CODE = \"/image/HelloSwingApplet.class\" WIDTH = 400 HEIGHT = 50>
+
+</APPLET>
", "java");
Action * Liste[] = {a1, a2, a3, a4, a5, ad, java};