mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-20 16:28:54 +00:00
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:
parent
fff09ed330
commit
faf3c19026
Notes:
github-actions[bot]
2025-09-15 06:31:54 +00:00
Author: https://github.com/kemzeb
Commit: faf3c19026
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6198
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue