From b11aa95025911d721f3584335392873db5199288 Mon Sep 17 00:00:00 2001 From: Akinori MUSHA Date: Thu, 21 Mar 2013 01:58:34 +0900 Subject: [PATCH] Initialize secure and httponly with false instead of nil. --- lib/http/cookie.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/http/cookie.rb b/lib/http/cookie.rb index 806b535..d4aea4d 100644 --- a/lib/http/cookie.rb +++ b/lib/http/cookie.rb @@ -152,12 +152,12 @@ class HTTP::Cookie @version = 0 # Netscape Cookie @origin = @domain = @path = - @secure = @httponly = @expires = @max_age = @comment = nil + @secure = @httponly = false @session = true - @created_at = @accessed_at = Time.now + case args.size when 2 self.name, self.value = *args