mirror of
https://github.com/Fishwaldo/minihttp.git
synced 2025-07-07 13:28:33 +00:00
forgot one
This commit is contained in:
parent
997a9e4ae0
commit
e7e8ee5e65
1 changed files with 1 additions and 1 deletions
|
@ -268,7 +268,7 @@ void URLEncode(const std::string& s, std::string& enc)
|
||||||
{
|
{
|
||||||
const unsigned char c = s[i];
|
const unsigned char c = s[i];
|
||||||
// from https://www.ietf.org/rfc/rfc1738.txt, page 3
|
// from https://www.ietf.org/rfc/rfc1738.txt, page 3
|
||||||
if(isalnum(c) || c == '$' || c == '-' || c == '_' || c == '.' || c == '+' || c == '!' || c == '*' || c == '\'' || c == '(' || c == ')')
|
if(isalnum(c) || c == '$' || c == '-' || c == '_' || c == '.' || c == '+' || c == '!' || c == '*' || c == '\'' || c == '(' || c == ')' || c == ',')
|
||||||
enc += (char)c;
|
enc += (char)c;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue