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:
parent
fc44d09221
commit
c4d7be100e
2 changed files with 3 additions and 4 deletions
2
AK/URL.h
2
AK/URL.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue