Skip to content
Snippets Groups Projects
Commit 03fc57af authored by Ján Macháček's avatar Ján Macháček
Browse files

fix - report many headers

parent ac554edf
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,7 @@ public class ReportController implements ReportApiDelegate{ ...@@ -18,6 +18,7 @@ public class ReportController implements ReportApiDelegate{
} }
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
private HttpHeaders initializeHeaders(){ private HttpHeaders initializeHeaders(){
headers.clear();
headers.add("Content-Type", "application/pdf"); headers.add("Content-Type", "application/pdf");
headers.add("Content-Disposition", "attachment; filename=report.pdf"); headers.add("Content-Disposition", "attachment; filename=report.pdf");
return headers; return headers;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment