Return-Path: Delivered-To: apmail-activemq-commits-archive@www.apache.org Received: (qmail 25959 invoked from network); 25 Feb 2011 20:11:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Feb 2011 20:11:34 -0000 Received: (qmail 36163 invoked by uid 500); 25 Feb 2011 20:11:34 -0000 Delivered-To: apmail-activemq-commits-archive@activemq.apache.org Received: (qmail 36095 invoked by uid 500); 25 Feb 2011 20:11:33 -0000 Mailing-List: contact commits-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list commits@activemq.apache.org Received: (qmail 36088 invoked by uid 99); 25 Feb 2011 20:11:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 20:11:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Feb 2011 20:11:31 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 9A7F623889B2; Fri, 25 Feb 2011 20:11:10 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@activemq.apache.org From: chirino@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110225201110.9A7F623889B2@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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))) } } }