We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecf027a commit 8caa9a1Copy full SHA for 8caa9a1
http/router/response.lua
@@ -41,14 +41,14 @@ local function setcookie(resp, cookie)
41
42
local str = utils.sprintf('%s=%s', name, utils.uri_escape(value))
43
if cookie.path ~= nil then
44
- str = utils.sprintf('%s;path=%s', str, utils.uri_escape(cookie.path))
+ str = utils.sprintf('%s;path=%s', str, cookie.path)
45
end
46
if cookie.domain ~= nil then
47
str = utils.sprintf('%s;domain=%s', str, cookie.domain)
48
49
50
if cookie.expires ~= nil then
51
- str = utils.sprintf('%s;expires="%s"', str, expires_str(cookie.expires))
+ str = utils.sprintf('%s;expires=%s', str, expires_str(cookie.expires))
52
53
54
if not resp.headers then
0 commit comments