Hi Kurt,

what version of the AMQP spec are you using? With 0.8, the fields for
those two properties are "content type" and "content encoding".
Unfortunately, 0.8 and 0.9 are not compatible in this case, as the
latter uses "content-type" and "content-encoding".

In any case, you can set any of the standard properties using this syntax:

content = Content()
content["content type"] = "text/plain"

if you want to set any custom header, you can use this instead:

content = Content()
content.headers["my header"] = "some value"

let me know if this worked for you.

Cheers.

_______________________________________________
Mailing list: https://launchpad.net/~txamqp-user
Post to     : txamqp-user@lists.launchpad.net
Unsubscribe : https://launchpad.net/~txamqp-user
More help   : https://help.launchpad.net/ListHelp

Reply via email to