浏览代码

Fixed URL encoding problem with space.

yhirose 13 年之前
父节点
当前提交
44a682cd3e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      httplib.h

+ 1 - 1
httplib.h

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