1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 10:01:13 +09: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
Notes: sideshowbarker 2024-07-17 23:00:03 +09:00
5 changed files with 7 additions and 7 deletions

View file

@ -610,7 +610,7 @@ WebIDL::ExceptionOr<void> XMLHttpRequest::override_mime_type(DeprecatedString co
return WebIDL::InvalidStateError::create(realm(), "Cannot override MIME type when state is Loading or Done.");
// 2. Set thiss override MIME type to the result of parsing mime.
m_override_mime_type = MimeSniff::MimeType::from_string(mime);
m_override_mime_type = MimeSniff::MimeType::parse(mime);
// 3. If thiss override MIME type is failure, then set thiss override MIME type to application/octet-stream.
if (!m_override_mime_type.has_value())