This commit is contained in:
el Mau 2023-01-09 23:11:52 -06:00
parent bed6039fff
commit fbaa85f13a
1 changed files with 3 additions and 2 deletions

View File

@ -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