Back in this commit:
http://github.com/dpp/liftweb/commit/645d9649a5956f0b67edbe8ded4d1b0136164980

If the intention is for LiftRules.determineContentType to be the sole
arbiter of the "Content-Type" header, we should probably remove and/or
deprecate LiftRules.useXhtmlMimeType. Otherwise, the attached patch will
restore its functionality.

Derek

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

diff --git a/lift/src/main/scala/net/liftweb/http/LiftRules.scala b/lift/src/main/scala/net/liftweb/http/LiftRules.scala
index d7b0c58..bf99dd3 100644
--- a/lift/src/main/scala/net/liftweb/http/LiftRules.scala
+++ b/lift/src/main/scala/net/liftweb/http/LiftRules.scala
@@ -107,7 +107,7 @@ object LiftRules {
    */
   var determineContentType:
   PartialFunction[(Can[RequestState], Can[String]), String] = {
-    case (_, Full(accept)) if accept.toLowerCase.contains("application/xhtml+xml") =>
+    case (_, Full(accept)) if this.useXhtmlMimeType && accept.toLowerCase.contains("application/xhtml+xml") =>
       "application/xhtml+xml"
 
     case _ => "text/html"

Reply via email to