Small cookie change to silence a warning

This commit is contained in:
Luca Deri 2022-02-04 21:22:24 +01:00
parent 7bfc2cb369
commit c57c3057e2

View file

@ -272,7 +272,7 @@ function sendHTTPHeaderIfName(mime, ifname, maxage, content_disposition, extra_h
local lines = {
'Cache-Control: max-age=0, no-cache, no-store',
'Server: ntopng '..info["version"]..' ['.. info["platform"]..']',
'Set-Cookie: tzname=' .. info.tzname .. '; Max-Age=60',
'Set-Cookie: tzname=' .. info.tzname .. '; path=/' .. cookie_attr,
'Pragma: no-cache',
'X-Frame-Options: DENY',
'X-Content-Type-Options: nosniff',
@ -290,7 +290,7 @@ function sendHTTPHeaderIfName(mime, ifname, maxage, content_disposition, extra_h
end
if(info.timezone ~= nil) then
lines[#lines + 1] = 'Set-Cookie: timezone=' .. info.timezone .. '; Max-Age=60'
lines[#lines + 1] = 'Set-Cookie: timezone=' .. info.timezone .. '; path=/' .. cookie_attr
end
if(content_disposition ~= nil) then