forked from elmau/empresa-libre
Fix #84
This commit is contained in:
parent
bed6039fff
commit
fbaa85f13a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue