lib/protocol/http/headers.rb in protocol-http-0.11.1 vs lib/protocol/http/headers.rb in protocol-http-0.11.2

- old
+ new

@@ -75,11 +75,11 @@ def dup self.class.new(@fields, @indexed) end def clear - @fields = [] + @fields.clear @indexed = nil end # An array of `[key, value]` pairs. attr :fields @@ -250,9 +250,13 @@ class Merged include Enumerable def initialize(*all) @all = all + end + + def clear + @all.clear end def << headers @all << headers