minor: return correct content type for jpg
This commit is contained in:
@@ -644,7 +644,7 @@ namespace Disco.Web.Areas.API.Controllers
|
||||
if (thumbPath.EndsWith(".png", StringComparison.OrdinalIgnoreCase))
|
||||
return File(thumbPath, "image/png");
|
||||
else
|
||||
return File(thumbPath, "image/jpg");
|
||||
return File(thumbPath, "image/jpeg");
|
||||
}
|
||||
else
|
||||
return File(ClientSource.Style.Images.AttachmentTypes.MimeTypeIcons.Icon(attachment.MimeType), "image/png");
|
||||
|
||||
Reference in New Issue
Block a user