1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:07:44 +00:00

LibWeb: Port Document interface from DeprecatedString to String

This commit is contained in:
Shannon Booth 2023-09-15 21:46:58 +12:00 committed by Andreas Kling
parent 9d88e14f20
commit e74031a396
15 changed files with 108 additions and 96 deletions

View file

@ -324,10 +324,10 @@ void XMLHttpRequest::set_document_response()
charset = "UTF-8"sv;
// 8. Set documents encoding to charset.
document->set_encoding(charset->to_deprecated_string());
document->set_encoding(MUST(String::from_utf8(charset.value())));
// 9. Set documents content type to finalMIME.
document->set_content_type(MUST(final_mine.serialized()).to_deprecated_string());
document->set_content_type(MUST(final_mine.serialized()));
// 10. Set documents URL to xhrs responses URL.
document->set_url(m_response->url().value_or({}));