incubator-esme-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vdic...@apache.org
Subject svn commit: r802757 - /incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgFormat.scala
Date Mon, 10 Aug 2009 12:04:01 GMT
Author: vdichev
Date: Mon Aug 10 12:04:01 2009
New Revision: 802757

URL: http://svn.apache.org/viewvc?rev=802757&view=rev
Log:
Update to latest changes in Lift

Modified:
    incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgFormat.scala

Modified: incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgFormat.scala
URL: http://svn.apache.org/viewvc/incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgFormat.scala?rev=802757&r1=802756&r2=802757&view=diff
==============================================================================
--- incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgFormat.scala (original)
+++ incubator/esme/trunk/server/src/main/scala/org/apache/esme/lib/MsgFormat.scala Mon Aug
10 12:04:01 2009
@@ -33,21 +33,18 @@
 
 import java.text.SimpleDateFormat
 
+/*
 object IsIE7 extends SessionVar[Boolean]({
     // "Firefox/3"
     // "MSIE 7"
-    def findUserAgent(in: List[(String, String)]): Box[String] =
-    in.filter(_._1.equalsIgnoreCase("User-Agent")).map(_._2).firstOption
 
   val r: Box[Boolean] =
-  for (session <- S.session;
-       agent <- findUserAgent(session.initialHeaders)) yield
+  for (agent <- S.getHeader("User-Agent")) yield
   agent.indexOf("MSIE 7") >= 0
 
   r openOr false
 })
 
-/*
 trait MsgFormat {
   
   def formatMsg(in: Message, showReply: Boolean, showConv: Boolean): NodeSeq =



Mime
View raw message