summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Fetch/Body.h
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/Body.h
parent2d7ce38ee210ee99d3d896e5a453ef6a214da374 (diff)
downloadserenity-ad4b4046f4503a54b5762f97381cc7b8d90402fc.zip
LibWeb/Fetch: Propagate OOM errors from HeaderList::extract_mime_type()
Diffstat (limited to 'Userland/Libraries/LibWeb/Fetch/Body.h')
-rw-r--r--Userland/Libraries/LibWeb/Fetch/Body.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Fetch/Body.h b/Userland/Libraries/LibWeb/Fetch/Body.h
index bb88916462..48936a1d4c 100644
--- a/Userland/Libraries/LibWeb/Fetch/Body.h
+++ b/Userland/Libraries/LibWeb/Fetch/Body.h
@@ -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
*/
@@ -26,7 +26,7 @@ class BodyMixin {
public:
virtual ~BodyMixin();
- virtual Optional<MimeSniff::MimeType> mime_type_impl() const = 0;
+ virtual ErrorOr<Optional<MimeSniff::MimeType>> mime_type_impl() const = 0;
virtual Optional<Infrastructure::Body&> body_impl() = 0;
virtual Optional<Infrastructure::Body const&> body_impl() const = 0;