fix: 封面图代理去掉 attachment,便于 CSS/img 内联展示
All checks were successful
Build and Deploy / deploy (push) Successful in 1m29s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
zzh 2026-11-26 14:10:07 +08:00
parent 9ad741e355
commit ef3a3abb9f

View File

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