Console: XML stats as attachments, not inline

This commit is contained in:
zzz
2019-12-14 17:52:37 +00:00
parent 9c534fda7b
commit 1974cc5559

View File

@@ -44,7 +44,7 @@ if ( !rendered && ((rs != null) || fakeBw) ) {
if ("xml".equals(format)) {
if (!fakeBw) {
response.setContentType("text/xml");
response.setHeader("Content-Disposition", "inline; filename=\"" + stat + ".xml\"");
response.setHeader("Content-Disposition", "attachment; filename=\"" + stat + ".xml\"");
rendered = ss.getXML(rate, cout);
}
} else {