|
@@ -50,7 +50,7 @@ public class DownloadController {
|
|
|
//response.addHeader("Content-Disposition", "attachment;filename=" + new String(filename.getBytes()));
|
|
|
response.addHeader("Content-Length", "" + buffer.length);
|
|
|
OutputStream toClient = new BufferedOutputStream(response.getOutputStream());
|
|
|
- response.setContentType("application/octet-stream");
|
|
|
+ response.setContentType("application/msexcel");
|
|
|
toClient.write(buffer);
|
|
|
toClient.flush();
|
|
|
toClient.close();
|