diff --git a/src/app/domain/jobs/controllers/job_posts.py b/src/app/domain/jobs/controllers/job_posts.py index 27abddd5..5a753884 100644 --- a/src/app/domain/jobs/controllers/job_posts.py +++ b/src/app/domain/jobs/controllers/job_posts.py @@ -194,7 +194,10 @@ async def get_job_post_pdf( return Response( media_type=content_type, content=file_content, - headers={"Content-Disposition": f"attachment; filename={job_post_id}"}, + headers={ + "Content-Disposition": f"attachment; filename={job_post_id}.pdf", + "Content-Type": content_type, + }, ) except s3_client.exceptions.NoSuchKey: raise NotFoundException(detail=f"Job post PDF not found.")