mirror of
https://github.com/ntop/ntopng.git
synced 2026-04-30 16:09:32 +00:00
Fix ah_host download file name. (#7644)
This commit is contained in:
parent
8b4f96bf94
commit
ba88b7d4d9
1 changed files with 4 additions and 1 deletions
|
|
@ -38,8 +38,11 @@ for _key, _value in ipairs(alerts or {}) do
|
|||
end -- for
|
||||
|
||||
if no_html then
|
||||
local extra_headers = {}
|
||||
|
||||
extra_headers["Content-Disposition"] = "attachment;filename=\"am_host_alerts_export_" .. os.time() .. ".csv\""
|
||||
res = am_alert_store:to_csv(res)
|
||||
rest_utils.vanilla_payload_response(rc, res, "text/csv")
|
||||
rest_utils.vanilla_payload_response(rc, res, "text/csv", extra_headers)
|
||||
else
|
||||
local data = {
|
||||
records = res,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue