mirror of
https://github.com/jellyfin/jellyfin-plugin-opds.git
synced 2024-11-23 22:29:47 +00:00
Set Content-Disposition header when downloading book
This commit is contained in:
parent
796c61597d
commit
ba53f8e417
@ -302,7 +302,8 @@ public class OpdsApi : ControllerBase
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
return PhysicalFile(bookPath, MimeTypes.GetMimeType(bookPath));
|
||||
var fileName = Path.GetFileName(bookPath);
|
||||
return PhysicalFile(bookPath, MimeTypes.GetMimeType(bookPath), fileName);
|
||||
}
|
||||
catch (AuthenticationException)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user