mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:47:35 +00:00
LibWeb/Fetch: Propagate OOM errors from HeaderList::extract_mime_type()
This commit is contained in:
parent
2d7ce38ee2
commit
ad4b4046f4
14 changed files with 36 additions and 36 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2022, Linus Groh <linusg@serenityos.org>
|
||||
* Copyright (c) 2022-2023, Linus Groh <linusg@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -38,7 +38,7 @@ ErrorOr<RequestOrResponseBlocking> should_response_to_request_be_blocked_due_to_
|
|||
return RequestOrResponseBlocking::Allowed;
|
||||
|
||||
// 2. Let mimeType be the result of extracting a MIME type from response’s header list.
|
||||
auto mime_type = response.header_list()->extract_mime_type();
|
||||
auto mime_type = TRY(response.header_list()->extract_mime_type());
|
||||
|
||||
// 3. Let destination be request’s destination.
|
||||
auto const& destination = request.destination();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue