mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Fix an example.
This commit is contained in:
parent
f0eb5d0cd8
commit
ef1f759e9d
1 changed files with 1 additions and 3 deletions
|
|
@ -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(', ')
|
||||
|
|
|
|||
Loading…
Reference in a new issue