Skip to content

Commit

Permalink
Check for explicit content-type in stomp message header
Browse files Browse the repository at this point in the history
Signed-off-by: Aman Gupta <aman@tmm1.net>
  • Loading branch information
Pete Hodgson authored and tmm1 committed May 29, 2010
1 parent 64de12e commit 2849fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/em/protocols/stomp.rb
Expand Up @@ -106,7 +106,7 @@ def send_frame verb, headers={}, body=""
ary = [verb, "\n"]
headers.each {|k,v| ary << "#{k}:#{v}\n" }
ary << "content-length: #{body.to_s.length}\n"
ary << "content-type: text/plain; charset=UTF-8\n"
ary << "content-type: text/plain; charset=UTF-8\n" unless headers.has_key? 'content-type'
ary << "\n"
ary << body.to_s
ary << "\0"
Expand Down

0 comments on commit 2849fda

Please sign in to comment.