diff options
-rw-r--r-- | lib/HttpServ.cc | 1 | ||||
-rw-r--r-- | src/Main.cc | 5 |
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}; |