summaryrefslogtreecommitdiff
path: root/qpid/python/hello-world
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2007-08-22 13:39:04 +0000
committerRafael H. Schloming <rhs@apache.org>2007-08-22 13:39:04 +0000
commit5b686d223970bc51d38440b03b901d97f9b93412 (patch)
treef03d49efd4e62fe038cfa54e407c89b6b8aae69e /qpid/python/hello-world
parent0d167b9903235740c2f646a238e9fecee69a1b2b (diff)
downloadqpid-python-5b686d223970bc51d38440b03b901d97f9b93412.tar.gz
added support for 0-10 style header encoding
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@568607 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/hello-world')
-rwxr-xr-xqpid/python/hello-world5
1 files changed, 3 insertions, 2 deletions
diff --git a/qpid/python/hello-world b/qpid/python/hello-world
index 4fb065ae53..b3170c8e0c 100755
--- a/qpid/python/hello-world
+++ b/qpid/python/hello-world
@@ -11,5 +11,6 @@ ch.queue_declare(queue="test")
ch.queue_bind(exchange="amq.direct", queue="test", routing_key="test")
print ch.queue_query(queue="test")
ch.message_subscribe(queue="test", destination="test")
-ch.message_transfer(destination="amq.direct",
- content=Content("hello world"))
+msg = Content("hello world")
+msg["content_type"] = "text/plain"
+ch.message_transfer(destination="amq.direct", content=msg)