diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-17 20:15:10 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-19 17:15:47 +0100 |
commit | 2db168acc112e8f032d57f8225a8122c0e7f4207 (patch) | |
tree | add8e7858b1fe3861624a8392703d6172e4fe30c /Userland/Libraries/LibWeb/XHR | |
parent | 3c5090e17257667514156900a552d875b46da27d (diff) | |
download | serenity-2db168acc112e8f032d57f8225a8122c0e7f4207.zip |
LibTextCodec+Everywhere: Port Decoders to new Strings
Diffstat (limited to 'Userland/Libraries/LibWeb/XHR')
-rw-r--r-- | Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp index 1f8529eb91..e12d38c38e 100644 --- a/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp +++ b/Userland/Libraries/LibWeb/XHR/XMLHttpRequest.cpp @@ -224,7 +224,7 @@ DeprecatedString XMLHttpRequest::get_text_response() const // If we don't support the decoder yet, let's crash instead of attempting to return something, as the result would be incorrect and create obscure bugs. VERIFY(decoder.has_value()); - return TextCodec::convert_input_to_utf8_using_given_decoder_unless_there_is_a_byte_order_mark(*decoder, m_received_bytes); + return TextCodec::convert_input_to_utf8_using_given_decoder_unless_there_is_a_byte_order_mark(*decoder, m_received_bytes).release_value_but_fixme_should_propagate_errors().to_deprecated_string(); } // https://xhr.spec.whatwg.org/#final-mime-type |