Hello Esteve,

Thanks for the clarification, using the correct fields for the correct
version did the trick!

Thanks for helping me out,

Kurt

On Mon, Mar 29, 2010 at 5:29 PM, Esteve Fernandez <
esteve.fernan...@gmail.com> wrote:

> 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
>
_______________________________________________
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