Update documentation and remove hack fixed by upstream cookie library

This commit is contained in:
BrianKopp 2020-02-08 11:54:52 -07:00
parent 8d4278bfd2
commit 34b194c770
2 changed files with 2 additions and 5 deletions

View file

@ -54,15 +54,12 @@ function _M.set_cookie(self, value)
end
end
if cookie_samesite then
cookie_path = cookie_path .. "; SameSite=" .. cookie_samesite
end
local cookie_data = {
key = self:cookie_name(),
value = value,
path = cookie_path,
httponly = true,
samesite = cookie_samesite,
secure = ngx.var.https == "on",
}