mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
LibWeb/Fetch: Use MimeType in DataURL
This commit is contained in:
parent
2b59ba19e0
commit
295c4ef51a
Notes:
sideshowbarker
2024-07-17 09:37:30 +09:00
Author: https://github.com/jamierocks
Commit: 295c4ef51a
Pull-request: https://github.com/SerenityOS/serenity/pull/24525
5 changed files with 21 additions and 19 deletions
|
@ -851,8 +851,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 dataURLStruct’s MIME type, serialized.
|
||||
// FIXME: Serialize MIME type.
|
||||
auto const& mime_type = data_url_struct.value().mime_type;
|
||||
auto const& mime_type = MUST(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 dataURLStruct’s body as a body.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue