mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +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
|
||||
|
||||
@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
|
||||
|
|
|
|||
Loading…
Reference in a new issue