mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +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)
|
||||
|
||||
# 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
|
||||
|
|
|
|||
Loading…
Reference in a new issue