Fix a bad example that blindly eats a cookie without checking the origin.

This commit is contained in:
Akinori MUSHA 2012-10-14 22:19:59 +09:00
parent 2b96f2317d
commit ad42622d3b

View file

@ -31,7 +31,7 @@ Or install it yourself as:
# Store received cookies
HTTP::Cookie.parse(uri, set_cookie_header_value) { |cookie|
jar << cookie
jar << cookie if cookie.acceptable_from_uri?(uri)
}
# Extract cookies to send