From fbaa85f13a7637bf19aa37604b6865df742bf319 Mon Sep 17 00:00:00 2001 From: el Mau Date: Mon, 9 Jan 2023 23:11:52 -0600 Subject: [PATCH] Fix #84 --- source/app/controllers/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/app/controllers/main.py b/source/app/controllers/main.py index f01c7a3..522de05 100644 --- a/source/app/controllers/main.py +++ b/source/app/controllers/main.py @@ -548,8 +548,9 @@ class AppDocumentos(object): if not type_doc in ('pdf', 'pre', 'tpdf', 'pdfpago', 'html'): resp.append_header('Content-Disposition', 'attachment; filename={}'.format(file_name)) - resp.append_header('Content-Disposition', - 'inline; filename={}'.format(file_name)) + if type_doc in ('pdf',): + resp.append_header('Content-Disposition', + 'inline; filename={}'.format(file_name)) resp.content_type = content_type resp.status = falcon.HTTP_200