mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
Encoding LF and CR
This commit is contained in:
parent
7b3f6db70b
commit
774c27e690
1 changed files with 2 additions and 0 deletions
|
@ -943,6 +943,8 @@ inline std::string encode_url(const std::string& s)
|
|||
switch (s[i]) {
|
||||
case ' ': result += "%20"; break;
|
||||
case '+': result += "%2B"; break;
|
||||
case '\r': result += "%0D"; break;
|
||||
case '\n': result += "%0A"; break;
|
||||
case '\'': result += "%27"; break;
|
||||
case ',': result += "%2C"; break;
|
||||
case ':': result += "%3A"; break;
|
||||
|
|
Loading…
Reference in a new issue