1
0
Эх сурвалжийг харах

Fixed URL encoding problem with space.

yhirose 13 жил өмнө
parent
commit
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;