Set Content-Disposition header when downloading book

This commit is contained in:
Cody Robibero 2022-03-18 17:40:13 -06:00
parent 796c61597d
commit ba53f8e417

View File

@ -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)
{