Author: gsim
Date: Wed Sep 11 16:40:08 2013
New Revision: 1521926

URL: http://svn.apache.org/r1521926
Log:
QPID-5131: make 1.0 content available to xml exchange

Modified:
    qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Message.cpp

Modified: qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Message.cpp
URL: 
http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Message.cpp?rev=1521926&r1=1521925&r2=1521926&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Message.cpp (original)
+++ qpid/trunk/qpid/cpp/src/qpid/broker/amqp/Message.cpp Wed Sep 11 16:40:08 
2013
@@ -148,8 +148,12 @@ void Message::processProperties(MapHandl
 //and whether it should indeed only be the content that is thus
 //measured
 uint64_t Message::getContentSize() const { return data.size(); }
-//getContent() is used primarily for decoding qmf messages in management and ha
-std::string Message::getContent() const { return empty; }
+//getContent() is used primarily for decoding qmf messages in
+//management and ha, but also by the xml exchange
+std::string Message::getContent() const
+{
+    return std::string(body.data, body.size);
+}
 
 Message::Message(size_t size) : data(size)
 {



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to