mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Omit calling #expires= when #max_age= is going to be called.
This commit is contained in:
parent
d2eb1289f5
commit
640ea1b297
1 changed files with 1 additions and 1 deletions
|
|
@ -174,7 +174,7 @@ class HTTP::Cookie
|
|||
# Let max_age take precedence over expires
|
||||
max_age = val
|
||||
when :expires, :expires_at
|
||||
self.expires = val
|
||||
self.expires = val unless max_age
|
||||
when :httponly, :httponly?
|
||||
@httponly = val
|
||||
when :secure, :secure?
|
||||
|
|
|
|||
Loading…
Reference in a new issue