fix content lenght parameter
This commit is contained in:
parent
fa84f48a43
commit
c49ad27df7
@ -54,7 +54,7 @@ class DocxReportController(ReportController):
|
|||||||
"Content-Type",
|
"Content-Type",
|
||||||
"application/pdf",
|
"application/pdf",
|
||||||
),
|
),
|
||||||
("Content-Length", len(pdf)),
|
("Content-Length", len(pdf[0])),
|
||||||
]
|
]
|
||||||
return request.make_response(pdf, headers=pdfhttpheaders)
|
return request.make_response(pdf, headers=pdfhttpheaders)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user