lib/onstomp/connections/serializers/stomp_1_1.rb in onstomp-1.0.2 vs lib/onstomp/connections/serializers/stomp_1_1.rb in onstomp-1.0.3

- old
+ new

@@ -62,11 +62,11 @@ end [ unescape_header(str[0...col]), unescape_header(str[(col+1)..-1]) ] end - # Forces the frame's body to match the charset specified in its +content-type+ + # Forces the frame's body to match the charset specified in its `content-type` # header, if applicable. # @param [OnStomp::Components::Frame] frame def prepare_parsed_frame frame force_body_encoding frame end @@ -92,10 +92,10 @@ type, subtype, charset = f.content_type charset ||= (type == 'text') ? 'UTF-8' : 'ASCII-8BIT' f.body.force_encoding(charset) f end - # Set an appropriate +content-type+ header with `charset` parameter for + # Set an appropriate `content-type` header with `charset` parameter for # frames with a text body # @note No-op for Ruby 1.8.x # @param [OnStomp::Components::Frame] f # @return [OnStomp::Components::Frame] def make_ct f