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)
|
jar.load(filename) if File.exist?(filename)
|
||||||
|
|
||||||
# Store received cookies
|
# Store received cookies
|
||||||
HTTP::Cookie.parse(set_cookie_header_value, origin: uri) { |cookie|
|
jar.parse(set_cookie_header_value, uri)
|
||||||
jar << cookie
|
|
||||||
}
|
|
||||||
|
|
||||||
# Get the value for the Cookie field of a request header
|
# Get the value for the Cookie field of a request header
|
||||||
cookie_header_value = jar.cookies(uri).join(', ')
|
cookie_header_value = jar.cookies(uri).join(', ')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue