lib/httpx/headers.rb in httpx-0.10.2 vs lib/httpx/headers.rb in httpx-0.11.0
- old
+ new
@@ -117,9 +117,10 @@
# the headers store in Hash format
def to_hash
Hash[to_a]
end
+ alias_method :to_h, :to_hash
# the headers store in array of pairs format
def to_a
Array(each)
end