diff --git a/controllers/main.py b/controllers/main.py index 5da4b78..6e563b5 100644 --- a/controllers/main.py +++ b/controllers/main.py @@ -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: