From 5d7fbde318851d87e1fa969c818160dd00f3ad10 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 8 Dec 2016 23:49:44 +0900 Subject: [PATCH] Avoid warnings --- lib/http/cookie.rb | 2 +- lib/http/cookie_jar/mozilla_store.rb | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/http/cookie.rb b/lib/http/cookie.rb index 3df776a..01e8254 100644 --- a/lib/http/cookie.rb +++ b/lib/http/cookie.rb @@ -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 diff --git a/lib/http/cookie_jar/mozilla_store.rb b/lib/http/cookie_jar/mozilla_store.rb index e02f73a..409cf45 100644 --- a/lib/http/cookie_jar/mozilla_store.rb +++ b/lib/http/cookie_jar/mozilla_store.rb @@ -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,