luci-app-nlbwmon: add proper file names for json and csv exports.
authorAmeer Dawood <ameer1234567890@gmail.com>
Mon, 23 Jul 2018 19:41:33 +0000 (00:41 +0500)
committerJo-Philipp Wich <jo@mein.io>
Sat, 29 Sep 2018 12:59:42 +0000 (14:59 +0200)
commitb3642f476267e60aa1fcd7b0c3fac9512f3754ad
tree8b53fb96b415acfa4f888af7c3109f104cf975d5
parent32ee1873ac89f2bd510d8982d702e127fc19d39b
luci-app-nlbwmon: add proper file names for json and csv exports.

Currently, the json and csv exports are just named `data` which is not
intuitive. This adds proper file name extensions using the
Content-disposition HTTP header.

Suggested-by: Ameer Dawood <ameer1234567890@gmail.com>
[slightly reword commit message, squash commits]
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
applications/luci-app-nlbwmon/luasrc/controller/nlbw.lua