Avoid warnings

This commit is contained in:
Akinori MUSHA 2016-12-08 23:49:44 +09:00
parent 40d988ab92
commit 5d7fbde318
2 changed files with 1 additions and 2 deletions

View file

@ -128,7 +128,7 @@ class HTTP::Cookie
# new("name" => "uid", "value" => "a12345", "Domain" => 'www.example.org') # new("name" => "uid", "value" => "a12345", "Domain" => 'www.example.org')
# #
def initialize(*args) def initialize(*args)
@origin = @domain = @path = @name = @origin = @domain = @path =
@expires = @max_age = nil @expires = @max_age = nil
@for_domain = @secure = @httponly = false @for_domain = @secure = @httponly = false
@session = true @session = true

View file

@ -441,7 +441,6 @@ class HTTP::CookieJar
now = Time.now now = Time.now
if uri if uri
thost = DomainName.new(uri.host) thost = DomainName.new(uri.host)
tpath = uri.path
@stmt[:cookies_for_domain].execute({ @stmt[:cookies_for_domain].execute({
:baseDomain => thost.domain || thost.hostname, :baseDomain => thost.domain || thost.hostname,