Merge branch 'master' of github.com:beetbox/beets

This commit is contained in:
Adrian Sampson 2016-12-29 13:31:00 -05:00
commit 1e215aedef

View file

@ -206,7 +206,7 @@ def item_file(item_id):
response = flask.send_file(
util.py3_path(item.path),
as_attachment=True,
attachment_filename=os.path.basename(item.path),
attachment_filename=os.path.basename(util.py3_path(item.path)),
)
response.headers['Content-Length'] = os.path.getsize(item.path)
return response