Open amwicfai opened 11 years ago
Pretty sure headers need encoding see:
http://stomp.github.io/stomp-specification-1.1.html#Value_Encoding
Are you using ActiveMQ?
If so what version?
I can reproduce the problem on ActiveMQ 5.8, please verify.
Strange, it appears to have been fixed in 5.6
I haven't attempted to verify this, but it sounds like a bug. Note that stomp-client makes STOMP 1.0 connections, not 1.1 (the accept-version: header is missing, see http://stomp.github.io/stomp-specification-1.1.html#protocol_negotiation), and header values can contain any character other than NL in 1.0. The first :
is the name/value seperator:
header = header-name ":" header-value
header-name = 1*<any CHAR except LF or ":">
header-value = 1*<any CHAR except LF>
the message-id include ":", example: xxxxxxxxx04-37571-1369787148937-2:209:-1:1:3
so split it by ":" is error.
var kv = line.split(':', 2); //from parser.js