changeset 381:11040e4753f6

~ fix content-type for index
author Alexandre Bertails <bertails@gmail.com>
date Tue, 30 Aug 2011 01:43:17 -0400
parents dee6bfc5b370
children c623f221f4ac
files directmapping-webapp/src/main/scala/Main.scala
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/directmapping-webapp/src/main/scala/Main.scala	Tue Aug 30 01:05:16 2011 -0400
+++ b/directmapping-webapp/src/main/scala/Main.scala	Tue Aug 30 01:43:17 2011 -0400
@@ -128,14 +128,14 @@
         }
       }
 
-      Ok ~> Scalate(req, "index.ssp",
-                    "ddlName" -> "",
-                    "ddl" -> ddl,
-                    "ddlMessage" -> ddlMessage,
-                    "constructName" -> "",
-                    "construct" -> constructs,
-                    "constructMessage" -> constructMessage,
-                    "result" -> dmThenConstruct(ddl, constructs))(engine)
+      Ok ~> ContentType("application/xhtml+xml") ~> Scalate(req, "index.ssp",
+                                                            "ddlName" -> "",
+                                                            "ddl" -> ddl,
+                                                            "ddlMessage" -> ddlMessage,
+                                                            "constructName" -> "",
+                                                            "construct" -> constructs,
+                                                            "constructMessage" -> constructMessage,
+                                                            "result" -> dmThenConstruct(ddl, constructs))(engine)
     }
   }
 
Set up and maintained by W3C Systems Team, please report bugs to sysreq@w3.org.

W3C would like to thank Microsoft who donated the server that allows us to run this service.