mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Update the example code.
This commit is contained in:
parent
1a471513de
commit
3d7b39ff86
1 changed files with 2 additions and 2 deletions
|
|
@ -30,8 +30,8 @@ Or install it yourself as:
|
||||||
jar.load(filename) if File.exist?(filename)
|
jar.load(filename) if File.exist?(filename)
|
||||||
|
|
||||||
# Store received cookies
|
# Store received cookies
|
||||||
HTTP::Cookie.parse(uri, set_cookie_header_value) { |cookie|
|
HTTP::Cookie.parse(set_cookie_header_value, :origin => uri) { |cookie|
|
||||||
jar << cookie if cookie.acceptable_from_uri?(uri)
|
jar << cookie
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extract cookies to send
|
# Extract cookies to send
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue