mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-04-11 19:28:30 +00:00
Fixed URL encoding problem with space.
This commit is contained in:
@@ -349,7 +349,7 @@ inline std::string encode_url(const std::string& s)
|
||||
int i = 0;
|
||||
while (s[i]) {
|
||||
switch (s[i]) {
|
||||
case ' ': result += "%20"; break;
|
||||
case ' ': result += "+"; break;
|
||||
case '\'': result += "%27"; break;
|
||||
case ',': result += "%2C"; break;
|
||||
case ':': result += "%3A"; break;
|
||||
|
||||
Reference in New Issue
Block a user