activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r1074683 - /activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
Date Fri, 25 Feb 2011 20:11:10 GMT
Author: chirino
Date: Fri Feb 25 20:11:10 2011
New Revision: 1074683

URL: http://svn.apache.org/viewvc?rev=1074683&view=rev
Log:
trim the header name to avoid errors due to xml formatting of config.

Modified:
    activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala

Modified: activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
URL: http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala?rev=1074683&r1=1074682&r2=1074683&view=diff
==============================================================================
--- activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
(original)
+++ activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
Fri Feb 25 20:11:10 2011
@@ -732,9 +732,9 @@ class StompProtocolHandler extends Proto
           if( !matches.isEmpty ) {
             h.separator match {
               case null=>
-                rc ::= (encode_header(h.name), encode_header(matches.head.allow))
+                rc ::= (encode_header(h.name.trim), encode_header(matches.head.allow))
               case separator =>
-                rc ::= (encode_header(h.name), encode_header(matches.map(_.allow).mkString(separator)))
+                rc ::= (encode_header(h.name.trim), encode_header(matches.map(_.allow).mkString(separator)))
             }
           }
         }



Mime
View raw message