fix: 封面图代理去掉 attachment,便于 CSS/img 内联展示
All checks were successful
Build and Deploy / deploy (push) Successful in 1m29s
All checks were successful
Build and Deploy / deploy (push) Successful in 1m29s
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
9ad741e355
commit
ef3a3abb9f
@ -99,10 +99,8 @@ public static class OmsManagedImageHelper
|
||||
continue;
|
||||
}
|
||||
|
||||
return new FileContentResult(bytes, GuessImageMime(candidate))
|
||||
{
|
||||
FileDownloadName = Path.GetFileName(candidate.Replace('\\', '/'))
|
||||
};
|
||||
// 不设 FileDownloadName,避免 Content-Disposition: attachment 影响 CSS/img 内联展示
|
||||
return new FileContentResult(bytes, GuessImageMime(candidate));
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user