summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-03-03 09:27:51 +0000
committerLinus Groh <mail@linusgroh.de>2023-03-03 11:02:21 +0000
commitad4b4046f4503a54b5762f97381cc7b8d90402fc (patch)
treeeaad349beb092eadc1ae7d01e9e0f0ae6cdbddfa /Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp
parent2d7ce38ee210ee99d3d896e5a453ef6a214da374 (diff)
downloadserenity-ad4b4046f4503a54b5762f97381cc7b8d90402fc.zip
LibWeb/Fetch: Propagate OOM errors from HeaderList::extract_mime_type()
Diffstat (limited to 'Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp')
-rw-r--r--Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp b/Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp
index 1d762df730..23401c04fb 100644
--- a/Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp
+++ b/Userland/Libraries/LibWeb/Fetch/Infrastructure/NoSniffBlocking.cpp
@@ -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();