Fixed URL encoding problem with space.

This commit is contained in:
yhirose 2012-10-12 00:01:56 -04:00
parent 3b3828aaff
commit 44a682cd3e

View file

@ -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;