diff options
author | Linus Groh <mail@linusgroh.de> | 2023-03-03 09:27:51 +0000 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-03-03 11:02:21 +0000 |
commit | ad4b4046f4503a54b5762f97381cc7b8d90402fc (patch) | |
tree | eaad349beb092eadc1ae7d01e9e0f0ae6cdbddfa /Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h | |
parent | 2d7ce38ee210ee99d3d896e5a453ef6a214da374 (diff) | |
download | serenity-ad4b4046f4503a54b5762f97381cc7b8d90402fc.zip |
LibWeb/Fetch: Propagate OOM errors from HeaderList::extract_mime_type()
Diffstat (limited to 'Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h')
-rw-r--r-- | Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h index 817170ae5e..8a8aa779d3 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.h @@ -79,9 +79,9 @@ private: void set_status(Fetch::Infrastructure::Status status) { m_status = status; } void fire_progress_event(DeprecatedString const&, u64, u64); - MimeSniff::MimeType get_response_mime_type() const; - Optional<StringView> get_final_encoding() const; - MimeSniff::MimeType get_final_mime_type() const; + ErrorOr<MimeSniff::MimeType> get_response_mime_type() const; + ErrorOr<Optional<StringView>> get_final_encoding() const; + ErrorOr<MimeSniff::MimeType> get_final_mime_type() const; DeprecatedString get_text_response() const; |