diff options
Diffstat (limited to 'qpid/python/hello-world')
| -rwxr-xr-x | qpid/python/hello-world | 5 |
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) |
