After downloading an Excel with HttpServletResponse the second time i tried to download it dosent work.

```
           public void DatosaExcel(HttpServletResponse response) throws IOException {

                writeHeaderLine();
                writeDataLines();

                ServletOutputStream outputStream = response.getOutputStream();
                workbook.write(outputStream);   
                outputStream.close();

           }

```

```
    @GetMapping("/DescargarExcelEmpleados")
    public void DescargarEmpleados(HttpServletResponse response) throws IOException {
        response.setContentType("application/octet-stream");
        String headerKey = "Content-Disposition";
        String headerValue = "attachment; filename=empleados.xlsx";
        response.setHeader(headerKey, headerValue);
        productService.DatosaExcel(response);
    }

```

those are my Ctrl and function that calls the excel generator but i cant find a way of solving this issue