Skip to content
Snippets Groups Projects
Commit 91ec58f2 authored by Martin Mareš's avatar Martin Mareš
Browse files

Je-li výsledkem jobu PDF, posíláme správný content-type

parent 1cb70fb6
No related branches found
No related tags found
No related merge requests found
......@@ -118,6 +118,8 @@ def send_job_result(job: db.Job) -> Response:
if file.endswith('.zip'):
type = 'application/zip'
elif file.endswith('.pdf'):
type = 'application/pdf'
else:
type = 'application/binary'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment