~ fix content-type for index
authorAlexandre Bertails <bertails@gmail.com>
Tue, 30 Aug 2011 01:43:17 -0400
changeset 381 11040e4753f6
parent 380 dee6bfc5b370
child 382 c623f221f4ac
~ fix content-type for index
directmapping-webapp/src/main/scala/Main.scala
--- 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)
     }
   }