diff --git a/minihttp.cpp b/minihttp.cpp index 2afba5b..21b9e5b 100644 --- a/minihttp.cpp +++ b/minihttp.cpp @@ -272,7 +272,8 @@ void URLEncode(const std::string& s, std::string& enc) { const unsigned char c = s[i]; // from https://www.ietf.org/rfc/rfc1738.txt, page 3 - if(isalnum(c) || c == '$' || c == '-' || c == '_' || c == '.' || c == '+' || c == '!' || c == '*' || c == '\'' || c == '(' || c == ')' || c == ',') + // with some changes for compatibility + if(isalnum(c) || c == '-' || c == '_' || c == '.' || c == ',') enc += (char)c; else if(c == ' ') enc += '+';