Skip to content

Commit 6383f68

Browse files
committed
updating content type per http://filext.com/file-extension/XLSX. This is because FireFox will add .xls to the file if you choose to open it after downloading rather than saving.
1 parent 290c188 commit 6383f68

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/groovy/pl/touk/excel/export/WebXlsxExporter.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class WebXlsxExporter extends XlsxExporter {
3030

3131
private WebXlsxExporter setHeaders(HttpServletResponse response, def filename) {
3232
response.setHeader("Content-disposition", "attachment; filename=$filename;")
33-
response.setHeader("Content-Type", "application/vnd.ms-excel")
33+
response.setHeader("Content-Type", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
3434
this
3535
}
3636
}

0 commit comments

Comments
 (0)