1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:17:35 +00:00

AK: Directly append URL paths where applicable

This is a little closer to the spec text, and helps us avoid using
the ApplyPercentEncoding flag.
This commit is contained in:
Shannon Booth 2023-08-06 16:13:08 +12:00 committed by Andreas Kling
parent fc44d09221
commit c4d7be100e
2 changed files with 3 additions and 4 deletions

View file

@ -112,7 +112,7 @@ public:
void append_slash()
{
// NOTE: To indicate that we want to end the path with a slash, we have to append an empty path segment.
append_path("", ApplyPercentEncoding::No);
m_paths.append("");
}
DeprecatedString serialize_path(ApplyPercentDecoding = ApplyPercentDecoding::Yes) const;