LibWeb: Make more MimeSniff::MimeType APIs infallible

This commit is contained in:
Andreas Kling 2024-10-14 11:06:43 +02:00 committed by Andreas Kling
commit 88e7688940
Notes: github-actions[bot] 2024-10-14 18:48:50 +00:00
14 changed files with 55 additions and 56 deletions

View file

@ -901,7 +901,7 @@ WebIDL::ExceptionOr<JS::NonnullGCPtr<PendingResponse>> scheme_fetch(JS::Realm& r
return PendingResponse::create(vm, request, Infrastructure::Response::network_error(vm, "Failed to process 'data:' URL"sv));
// 3. Let mimeType be dataURLStructs MIME type, serialized.
auto const& mime_type = MUST(data_url_struct.value().mime_type.serialized());
auto const& mime_type = data_url_struct.value().mime_type.serialized();
// 4. Return a new response whose status message is `OK`, header list is « (`Content-Type`, mimeType) », and
// body is dataURLStructs body as a body.