This commit is contained in:
el Mau 2023-01-09 17:46:40 -06:00
parent acbaecbfc5
commit bed6039fff
1 changed files with 2 additions and 0 deletions

View File

@ -548,6 +548,8 @@ 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))
resp.content_type = content_type
resp.status = falcon.HTTP_200