fix content lenght parameter

This commit is contained in:
Vitaly D 2021-11-18 15:12:35 +05:00
parent fa84f48a43
commit c49ad27df7

View File

@ -54,7 +54,7 @@ class DocxReportController(ReportController):
"Content-Type",
"application/pdf",
),
("Content-Length", len(pdf)),
("Content-Length", len(pdf[0])),
]
return request.make_response(pdf, headers=pdfhttpheaders)
else: