lib/stomp/message.rb in stomp-1.2.2 vs lib/stomp/message.rb in stomp-1.2.3

- old
+ new

@@ -39,10 +39,10 @@ if protocol11p work_command.force_encoding(Stomp::UTF8) if work_command.respond_to?(:force_encoding) end self.command = work_command work_headers.split("\n").map do |value| - parsed_value = value.match /^([\w|-]*):(.*)$/ + parsed_value = value.match /^([\r|\w|-]*):(.*)$/ raise Stomp::Error::InvalidFormat, 'parsed header value' unless parsed_value # pk = parsed_value[1] pv = parsed_value[2] #