mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-27 14:57:46 +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
|
# Let max_age take precedence over expires
|
||||||
max_age = val
|
max_age = val
|
||||||
when :expires, :expires_at
|
when :expires, :expires_at
|
||||||
self.expires = val
|
self.expires = val unless max_age
|
||||||
when :httponly, :httponly?
|
when :httponly, :httponly?
|
||||||
@httponly = val
|
@httponly = val
|
||||||
when :secure, :secure?
|
when :secure, :secure?
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue