restore cookie max_age

This commit is contained in:
Sven Fuchs 2013-02-26 23:55:49 +01:00
parent 5ae74ddcdc
commit b93ce53a7f

View File

@ -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