1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 14:14:58 +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:
Linus Groh 2023-03-03 09:27:50 +00:00
parent 65ab6d3b6f
commit fabea2a6a7
5 changed files with 7 additions and 7 deletions

View file

@ -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;