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 | 237f1f9555a150ced092cfa811c0cc94ba850211 (patch) | |
| tree | d7b65707395911bb0671e97962ffb376cfbd46da /cpp | |
| parent | 0baa4f4f565203c1b453cbf4eb119a5d200f5fa9 (diff) | |
| download | qpid-python-237f1f9555a150ced092cfa811c0cc94ba850211.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.rb | 2 |
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? |
