Merge pull request #4819 from crobibero/download-name

Set filename when downloading file
This commit is contained in:
Joshua M. Boniface 2020-12-18 02:17:24 -05:00 committed by GitHub
commit 668e168c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -667,7 +667,7 @@ namespace Jellyfin.Api.Controllers
}
// TODO determine non-ASCII validity.
return PhysicalFile(path, MimeTypes.GetMimeType(path));
return PhysicalFile(path, MimeTypes.GetMimeType(path), filename);
}
/// <summary>