HelpPageController.GetFileAsync() 404->204

This commit is contained in:
ngfrolov 2023-07-27 10:20:12 +05:00
parent 145d528074
commit f40cd0acff
Signed by: ng.frolov
GPG Key ID: E99907A0357B29A7

View File

@ -90,7 +90,7 @@ public class HelpPageController : ControllerBase
cancellationToken);
if (!file.HasValue)
return NotFound();
return NoContent();
return File(file.Value.stream, "application/pdf", file.Value.fileName);
}