lib/onstomp/connections/stomp_1.rb in onstomp-1.0.8 vs lib/onstomp/connections/stomp_1.rb in onstomp-1.0.9

- old
+ new

@@ -52,10 +52,10 @@ create_frame command, [headers, {:transaction => tx}] end def create_frame command, layered_headers, body=nil headers = layered_headers.inject({}) do |final, h| - h = OnStomp.keys_to_sym(h).delete_if { |k,v| final.key?(k) && (v.nil? || v.empty?) } + h = OnStomp.keys_to_sym(h).delete_if { |k,v| v.nil? || v.empty? } final.merge!(h) final end OnStomp::Components::Frame.new(command, headers, body) end