mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 07:22:21 +00:00
LibURL+LibWeb: Make URL serialization return a String
This can only ever fail from OOM, and will never by string containing random byte sequences.
This commit is contained in:
parent
9724c67be2
commit
8f6fe1de83
Notes:
github-actions[bot]
2024-11-23 15:44:52 +00:00
Author: https://github.com/shannonbooth
Commit: 8f6fe1de83
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2518
15 changed files with 24 additions and 30 deletions
|
@ -194,7 +194,7 @@ String Request::serialize_origin() const
|
|||
return "null"_string;
|
||||
|
||||
// 2. Return request’s origin, serialized.
|
||||
return MUST(String::from_byte_string(m_origin.get<URL::Origin>().serialize()));
|
||||
return m_origin.get<URL::Origin>().serialize();
|
||||
}
|
||||
|
||||
// https://fetch.spec.whatwg.org/#byte-serializing-a-request-origin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue