LibWeb/MimeSniff: Match spec change by using correct font essence

Spec change was made to fix a typo; application/font-off ->
application/font-otf
This commit is contained in:
Kemal Zebari 2025-09-14 15:00:34 -07:00 committed by Sam Atkins
commit faf3c19026
Notes: github-actions[bot] 2025-09-15 06:31:54 +00:00

View file

@ -269,7 +269,7 @@ bool MimeType::is_font() const
{
// A font MIME type is any MIME type whose type is "font", or whose essence is one of the following:
// - application/font-cff
// - application/font-off
// - application/font-otf
// - application/font-sfnt
// - application/font-ttf
// - application/font-woff
@ -280,7 +280,7 @@ bool MimeType::is_font() const
return essence().is_one_of(
"application/font-cff"sv,
"application/font-off"sv,
"application/font-otf"sv,
"application/font-sfnt"sv,
"application/font-ttf"sv,
"application/font-woff"sv,