mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Fix a bad example that blindly eats a cookie without checking the origin.
This commit is contained in:
parent
2b96f2317d
commit
ad42622d3b
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ Or install it yourself as:
|
||||||
|
|
||||||
# Store received cookies
|
# Store received cookies
|
||||||
HTTP::Cookie.parse(uri, set_cookie_header_value) { |cookie|
|
HTTP::Cookie.parse(uri, set_cookie_header_value) { |cookie|
|
||||||
jar << cookie
|
jar << cookie if cookie.acceptable_from_uri?(uri)
|
||||||
}
|
}
|
||||||
|
|
||||||
# Extract cookies to send
|
# Extract cookies to send
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue