summaryrefslogtreecommitdiff
path: root/cpp/src
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-09-11 16:40:08 +0000
committerGordon Sim <gsim@apache.org>2013-09-11 16:40:08 +0000
commit2500fb559de1a70613ea18e5f9276d1821ff7b63 (patch)
tree311ec256b587eedf38944aa71905e842a5c71276 /cpp/src
parent9f964ec97d4897dbc103a065f3389066bba761d7 (diff)
downloadqpid-python-2500fb559de1a70613ea18e5f9276d1821ff7b63.tar.gz
QPID-5131: make 1.0 content available to xml exchange
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1521926 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r--cpp/src/qpid/broker/amqp/Message.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/qpid/broker/amqp/Message.cpp b/cpp/src/qpid/broker/amqp/Message.cpp
index 12e559cb88..572eea3881 100644
--- a/cpp/src/qpid/broker/amqp/Message.cpp
+++ b/cpp/src/qpid/broker/amqp/Message.cpp
@@ -148,8 +148,12 @@ void Message::processProperties(MapHandler& mh) const {
//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)
{