diff options
author | Gordon Sim <gsim@apache.org> | 2013-09-11 16:40:08 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2013-09-11 16:40:08 +0000 |
commit | 68e63dd2771f5b827cedc348ce6b68d8c346eb55 (patch) | |
tree | edd1374eaded809ac2c78a8c4c27fde2e5f1ddcf | |
parent | 1ed5e671332e9f98b671f19b62d32c0cf1b834d7 (diff) | |
download | qpid-python-68e63dd2771f5b827cedc348ce6b68d8c346eb55.tar.gz |
QPID-5131: make 1.0 content available to xml exchange
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1521926 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | qpid/cpp/src/qpid/broker/amqp/Message.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qpid/cpp/src/qpid/broker/amqp/Message.cpp b/qpid/cpp/src/qpid/broker/amqp/Message.cpp index 12e559cb88..572eea3881 100644 --- a/qpid/cpp/src/qpid/broker/amqp/Message.cpp +++ b/qpid/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) { |