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

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

parent 4c0f11af
No related branches found
No related tags found
No related merge requests found
......@@ -117,6 +117,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