No need to check validity here any more.

This commit is contained in:
Akinori MUSHA 2013-03-26 01:43:19 +09:00
parent 51da5e4c50
commit f5bc5032dd

View file

@ -95,9 +95,6 @@ class HTTP::CookieJar
if uri
uri = URI(uri)
return self unless URI::HTTP === uri && uri.host
block = proc { |cookie|
yield cookie if cookie.valid_for_uri?(uri)
}
end
@store.each(uri, &block)