You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ch...@apache.org on 2012/04/09 21:27:42 UTC
svn commit: r1311389 -
/activemq/activemq-apollo/trunk/apollo-stomp/src/main/scala/org/apache/activemq/apollo/stomp/StompProtocolHandler.scala
Author: chirino
Date: Mon Apr 9 19:27:42 2012
New Revision: 1311389
URL: http://svn.apache.org/viewvc?rev=1311389&view=rev
Log:
Fixes APLO-185 - Apollo can send STOMP messages without a destination header (advisories)
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=1311389&r1=1311388&r2=1311389&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 Mon Apr 9 19:27:42 2012
@@ -404,6 +404,7 @@ class StompProtocolHandler extends Proto
var headers = (MESSAGE_ID -> ascii(session_id.get+message_id_counter)) :: Nil
headers ::= (CONTENT_TYPE -> ascii(content_type))
headers ::= (CONTENT_LENGTH -> ascii(body.length().toString))
+ headers ::= (DESTINATION -> encode_header(destination_parser.encode_destination(delivery.sender)))
StompFrame(MESSAGE, headers, BufferContent(body))
}