mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Avoid warnings
This commit is contained in:
parent
40d988ab92
commit
5d7fbde318
2 changed files with 1 additions and 2 deletions
|
|
@ -128,7 +128,7 @@ class HTTP::Cookie
|
|||
# new("name" => "uid", "value" => "a12345", "Domain" => 'www.example.org')
|
||||
#
|
||||
def initialize(*args)
|
||||
@origin = @domain = @path =
|
||||
@name = @origin = @domain = @path =
|
||||
@expires = @max_age = nil
|
||||
@for_domain = @secure = @httponly = false
|
||||
@session = true
|
||||
|
|
|
|||
|
|
@ -441,7 +441,6 @@ class HTTP::CookieJar
|
|||
now = Time.now
|
||||
if uri
|
||||
thost = DomainName.new(uri.host)
|
||||
tpath = uri.path
|
||||
|
||||
@stmt[:cookies_for_domain].execute({
|
||||
:baseDomain => thost.domain || thost.hostname,
|
||||
|
|
|
|||
Loading…
Reference in a new issue