mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-15 06:41:50 +00:00
LibWeb/MimeSniff: Rename MimeType::from_string() to MimeType::parse()
This matches the spec's "parse a MIME type".
This commit is contained in:
parent
65ab6d3b6f
commit
fabea2a6a7
Notes:
sideshowbarker
2024-07-17 23:00:03 +09:00
Author: https://github.com/linusg
Commit: fabea2a6a7
Pull-request: https://github.com/SerenityOS/serenity/pull/17698
Reviewed-by: https://github.com/kennethmyhra ✅
5 changed files with 7 additions and 7 deletions
|
@ -218,7 +218,7 @@ void HTMLObjectElement::resource_did_load()
|
|||
|
||||
static bool is_xml_mime_type(StringView resource_type)
|
||||
{
|
||||
auto mime_type = MimeSniff::MimeType::from_string(resource_type);
|
||||
auto mime_type = MimeSniff::MimeType::parse(resource_type);
|
||||
if (!mime_type.has_value())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue