[rabbitmq-discuss] Missing content-type:text/plain in RabbitMQ web stomp echo messages

Michael Justin michael.justin at gmx.net
Wed Nov 27 10:23:35 GMT 2013


Hello,

the default stomp web example "Simple Echo Server" in the RabbitMQ 
broker plug-in at http://127.0.0.1:15670/web-stomp-examples/echo.html 
does not set the content-type header to text/plain. This confuses 
clients which detect text messages based on this header. Example

MESSAGE
subscription:{1CFF6D7D-7424-4386-8023-7CA5744F62E4}
destination:/topic/test
message-id:...
content-length:4

test

As a workaround, STOMP client code can be adjusted so a missing 
content-type header will indicate a text message.

I suggest to add the header to the outgoing message in the echo example 
HTML/JavaScript code.

Regards
-- 
Michael Justin



More information about the rabbitmq-discuss mailing list