Initialize secure and httponly with false instead of nil.

This commit is contained in:
Akinori MUSHA 2013-03-21 01:58:34 +09:00
parent 6b6944b324
commit b11aa95025

View file

@ -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