diff options
| author | Darryl L. Pierce <mcpierce@apache.org> | 2013-05-14 21:26:34 +0000 |
|---|---|---|
| committer | Darryl L. Pierce <mcpierce@apache.org> | 2013-05-14 21:26:34 +0000 |
| commit | 00fd4acace31299983aed199e021a275e9927cbe (patch) | |
| tree | df5fb6731fc0fd9e70ed61a9c501b84e3fd01e38 /qpid/cpp/bindings | |
| parent | f82294b090b77b21de2f3f20c35afc760b79cb78 (diff) | |
| download | qpid-python-00fd4acace31299983aed199e021a275e9927cbe.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@1482597 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/bindings')
| -rw-r--r-- | qpid/cpp/bindings/qpid/ruby/examples/spout.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/cpp/bindings/qpid/ruby/examples/spout.rb b/qpid/cpp/bindings/qpid/ruby/examples/spout.rb index 71c04d8709..f7170f146b 100644 --- a/qpid/cpp/bindings/qpid/ruby/examples/spout.rb +++ b/qpid/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? |
