mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +00:00
Initialize secure and httponly with false instead of nil.
This commit is contained in:
parent
6b6944b324
commit
b11aa95025
1 changed files with 2 additions and 2 deletions
|
|
@ -152,12 +152,12 @@ class HTTP::Cookie
|
||||||
@version = 0 # Netscape Cookie
|
@version = 0 # Netscape Cookie
|
||||||
|
|
||||||
@origin = @domain = @path =
|
@origin = @domain = @path =
|
||||||
@secure = @httponly =
|
|
||||||
@expires = @max_age =
|
@expires = @max_age =
|
||||||
@comment = nil
|
@comment = nil
|
||||||
|
@secure = @httponly = false
|
||||||
@session = true
|
@session = true
|
||||||
|
|
||||||
@created_at = @accessed_at = Time.now
|
@created_at = @accessed_at = Time.now
|
||||||
|
|
||||||
case args.size
|
case args.size
|
||||||
when 2
|
when 2
|
||||||
self.name, self.value = *args
|
self.name, self.value = *args
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue