lib/protocol/http/headers.rb in protocol-http-0.23.1 vs lib/protocol/http/headers.rb in protocol-http-0.23.2
- old
+ new
@@ -338,14 +338,14 @@
@all << headers
return self
end
- # @yield [String, String] header key (lower case) and value (as string).
+ # @yields [String, String] header key (lower case string) and value (as string).
def each(&block)
@all.each do |headers|
headers.each do |key, value|
- yield key.downcase, value.to_s
+ yield key.to_s.downcase, value.to_s
end
end
end
end
end