Skip to content

Commit 92267fc

Browse files
authored
Merge pull request #66 from iberryful/master
set filename for download archive
2 parents a019ad8 + b427b13 commit 92267fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/api/handlers/projects/jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ def get(self, project_id, job_id):
311311
logger.error(key)
312312
abort(404)
313313

314-
return send_file(f, attachment_filename=os.path.basename(f))
314+
return send_file(f, as_attachment=True, attachment_filename=os.path.basename(f))
315315

316316

317317
@ns.route('/<project_id>/jobs/<job_id>/archive')

0 commit comments

Comments
 (0)