Skip to content

Commit 15f3adc

Browse files
committed
fix: correct URL encoding in rawPath test case
1 parent c1597fb commit 15f3adc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/http/url.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,7 @@ TEST_CASE("URL", "[http::url]") {
122122
REQUIRE(url->path() == R"(/test/路径/with spaces/and!@#$%^&*()_+-=[]{}|;':",./<>?)");
123123
REQUIRE(
124124
url->rawPath() ==
125-
"/test/%E8%B7%AF%E5%BE%84/with%20spaces"
126-
"/and%21%40%23%24%25%5E%26%2A%28%29_%2B-%3D%5B%5D%7B%7D%7C%3B%27%3A%22%2C./%3C%3E%3F"
125+
"/test/%E8%B7%AF%E5%BE%84/with%20spaces/and!@%23$%25%5E&*()_+-=[]{}%7C;':%22,./%3C%3E%3F"
127126
);
128127
}
129128
}

0 commit comments

Comments
 (0)