restore cookie max_age
This commit is contained in:
parent
5ae74ddcdc
commit
b93ce53a7f
|
@ -16,7 +16,7 @@ class Travis::Web::App::AltVersions
|
|||
private
|
||||
|
||||
def set_cookie(headers, alt)
|
||||
cookie = "alt=#{alt}; path=/"
|
||||
cookie = "alt=#{alt}; path=/; max-age=#{alt == 'default' ? 0 : 86400}"
|
||||
puts "setting cookie #{cookie}"
|
||||
headers['Set-Cookie'] = cookie
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user