summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDarryl L. Pierce <mcpierce@apache.org>2013-05-14 21:26:34 +0000
committerDarryl L. Pierce <mcpierce@apache.org>2013-05-14 21:26:34 +0000
commitaaba7675e191b8120e8590750cfe2feb747b74d0 (patch)
treed7b65707395911bb0671e97962ffb376cfbd46da /cpp
parentb88fd5d50914916f8ee943ad9ab5f1ba9ef70cd1 (diff)
downloadqpid-python-aaba7675e191b8120e8590750cfe2feb747b74d0.tar.gz
QPID-4842: Ruby spout.rb calls wrong API to set message properties.
Previously it was calling the read-only API (the one that returns an array created from the underlying C++ code) rather than the method to actually set values in the underlying C++. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1482597 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/bindings/qpid/ruby/examples/spout.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpp/bindings/qpid/ruby/examples/spout.rb b/cpp/bindings/qpid/ruby/examples/spout.rb
index 71c04d8709..f7170f146b 100644
--- a/cpp/bindings/qpid/ruby/examples/spout.rb
+++ b/cpp/bindings/qpid/ruby/examples/spout.rb
@@ -106,7 +106,7 @@ session = connection.create_session
sender = session.create_sender options[:address]
message = Qpid::Messaging::Message.new
-options[:properties].each_key {|key| message.properties[key] = options[:properties][key]}
+options[:properties].each_key {|key| message[key] = options[:properties][key]}
(1..options[:count]).each do |count|
if !options[:mapped].keys.empty?