mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-07 21:59:54 +00:00
LibWeb/XHR: Don't construct a String from a String
Serializing a URL already returns a String.
This commit is contained in:
parent
f50f23b19f
commit
79293a3cbc
Notes:
github-actions[bot]
2025-07-12 01:58:51 +00:00
Author: https://github.com/shannonbooth
Commit: 79293a3cbc
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5411
Reviewed-by: https://github.com/tcl3 ✅
1 changed files with 1 additions and 2 deletions
|
|
@ -1289,8 +1289,7 @@ String XMLHttpRequest::response_url()
|
|||
if (!m_response->url().has_value())
|
||||
return String {};
|
||||
|
||||
auto serialized = m_response->url().value().serialize(URL::ExcludeFragment::Yes);
|
||||
return String::from_utf8_without_validation(serialized.bytes());
|
||||
return m_response->url().value().serialize(URL::ExcludeFragment::Yes);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue