Closed mluis closed 4 years ago
While explicitly setting the following mime type it gets ignored and returns 'application/json'. Althought the 'Content-disposition' gets changed accordingly.
What could be wrong?
get('/foo',(req, resp) -> { resp.type("application/vnd.ms-excel"); resp.header("Content-disposition", "attachment; filename=report.xls"); });
Check for the after. The answer will be there.
after
While explicitly setting the following mime type it gets ignored and returns 'application/json'. Althought the 'Content-disposition' gets changed accordingly.
What could be wrong?