diff options
author | Rafael H. Schloming <rhs@apache.org> | 2010-01-26 20:53:24 +0000 |
---|---|---|
committer | Rafael H. Schloming <rhs@apache.org> | 2010-01-26 20:53:24 +0000 |
commit | ebb1c7b36f8b2756b686bf162e45c45d0d56f3ee (patch) | |
tree | 71d0063859ec1b05e55cfe453ea667c9646e103d /python/qpid/driver.py | |
parent | 832887152f0cfbb0ff1d9ca3d3c5624818ecc87d (diff) | |
download | qpid-python-ebb1c7b36f8b2756b686bf162e45c45d0d56f3ee.tar.gz |
fixed subject override
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@903410 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid/driver.py')
-rw-r--r-- | python/qpid/driver.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/python/qpid/driver.py b/python/qpid/driver.py index 7d203de588..1e295dd42f 100644 --- a/python/qpid/driver.py +++ b/python/qpid/driver.py @@ -839,11 +839,10 @@ class Driver: sst = self._attachments[snd.session] _snd = self._attachments[snd] - # XXX: what if subject is specified for a normal queue? - if _snd._routing_key is None: - rk = msg.subject - else: + if msg.subject is None or _snd._exchange == "": rk = _snd._routing_key + else: + rk = msg.subject # XXX: do we need to query to figure out how to create the reply-to interoperably? if msg.reply_to: rt = addr2reply_to(msg.reply_to) |