mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Fixed URL encoding problem with space.
This commit is contained in:
parent
3b3828aaff
commit
44a682cd3e
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue