mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 04:39:06 +00:00
LibTextCodec+Everywhere: Port Decoders to new Strings
This commit is contained in:
parent
3c5090e172
commit
2db168acc1
Notes:
sideshowbarker
2024-07-17 00:00:59 +09:00
Author: https://github.com/AtkinsSJ
Commit: 2db168acc1
Pull-request: https://github.com/SerenityOS/serenity/pull/17511
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/nico
21 changed files with 149 additions and 123 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue