Merge pull request #3363 from skeeey/master

Document for cookie expires annotation
This commit is contained in:
Kubernetes Prow Robot 2019-01-14 07:52:28 -08:00 committed by GitHub
commit 1db9c91af4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 4 deletions

View file

@ -57,7 +57,7 @@ local function set_cookie(self, value)
}
if self.cookie_expires and self.cookie_expires ~= "" then
cookie_data.expires = ngx.cookie_time(tonumber(self.cookie_expires))
cookie_data.expires = ngx.cookie_time(ngx.time() + tonumber(self.cookie_expires))
end
if self.cookie_max_age and self.cookie_max_age ~= "" then