Update the example code.

This commit is contained in:
Akinori MUSHA 2012-10-17 22:40:20 +09:00
parent 1a471513de
commit 3d7b39ff86

View file

@ -30,8 +30,8 @@ Or install it yourself as:
jar.load(filename) if File.exist?(filename)
# Store received cookies
HTTP::Cookie.parse(uri, set_cookie_header_value) { |cookie|
jar << cookie if cookie.acceptable_from_uri?(uri)
HTTP::Cookie.parse(set_cookie_header_value, :origin => uri) { |cookie|
jar << cookie
}
# Extract cookies to send