default decoding when content_type not set?

10 views
Skip to first unread message

Scott Turnbull

unread,
Mar 4, 2013, 10:48:42 PM3/4/13
to carrot...@googlegroups.com
I'm reading messages from a several partner brokers who are some of whom are sending JSON in the message body but not setting content_type in the header so Rabbit receives it as application/octet-stream and reads the string as unicode.  I'd like to be able to set a default decoder to unmarshall to JSON if it detects the body as unicode but can't find a way to do it. 

Does anyone have advice for solving this problem?

Thanks.
Reply all
Reply to author
Forward
0 new messages