We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c60e69 commit c58b005Copy full SHA for c58b005
httplib.h
@@ -1612,7 +1612,8 @@ inline std::string encode_query_param(const std::string &value) {
1612
1613
inline std::string encode_url(const std::string &s) {
1614
std::string result;
1615
-
+ result.reserve(s.size());
1616
+
1617
for (size_t i = 0; s[i]; i++) {
1618
switch (s[i]) {
1619
case ' ': result += "%20"; break;
0 commit comments