Fix an example.

This commit is contained in:
Akinori MUSHA 2013-04-08 13:53:20 +09:00
parent f0eb5d0cd8
commit ef1f759e9d

View file

@ -35,9 +35,7 @@ Or install it yourself as:
jar.load(filename) if File.exist?(filename)
# Store received cookies
HTTP::Cookie.parse(set_cookie_header_value, origin: uri) { |cookie|
jar << cookie
}
jar.parse(set_cookie_header_value, uri)
# Get the value for the Cookie field of a request header
cookie_header_value = jar.cookies(uri).join(', ')