From c49ad27df77e29901af348da72328c642d9ed619 Mon Sep 17 00:00:00 2001 From: Vitaly D Date: Thu, 18 Nov 2021 15:12:35 +0500 Subject: [PATCH] fix content lenght parameter --- controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: