mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-29 07:29:32 +00:00
Fix for non-linux platforms
This commit is contained in:
parent
1dec5383a1
commit
7bfc2cb369
1 changed files with 4 additions and 1 deletions
|
|
@ -273,7 +273,6 @@ function sendHTTPHeaderIfName(mime, ifname, maxage, content_disposition, extra_h
|
|||
'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: timezone=' .. info.timezone .. '; Max-Age=60',
|
||||
'Pragma: no-cache',
|
||||
'X-Frame-Options: DENY',
|
||||
'X-Content-Type-Options: nosniff',
|
||||
|
|
@ -289,6 +288,10 @@ function sendHTTPHeaderIfName(mime, ifname, maxage, content_disposition, extra_h
|
|||
if(ifname ~= nil) then
|
||||
lines[#lines + 1] = 'Set-Cookie: ifname=' .. ifname .. '; path=/' .. cookie_attr
|
||||
end
|
||||
|
||||
if(info.timezone ~= nil) then
|
||||
lines[#lines + 1] = 'Set-Cookie: timezone=' .. info.timezone .. '; Max-Age=60'
|
||||
end
|
||||
|
||||
if(content_disposition ~= nil) then
|
||||
lines[#lines + 1] = 'Content-Disposition: '..content_disposition
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue