lib/httpx/plugins/cookies/jar.rb in httpx-0.17.0 vs lib/httpx/plugins/cookies/jar.rb in httpx-0.18.0
- old
+ new
@@ -53,10 +53,10 @@
def [](uri)
each(uri).sort
end
def each(uri = nil, &blk)
- return enum_for(__method__, uri) unless block_given?
+ return enum_for(__method__, uri) unless blk
return @cookies.each(&blk) unless uri
uri = URI(uri)