mirror of
https://github.com/yhirose/cpp-httplib
synced 2024-11-21 14:29:10 -07:00
reserving before encoding (#912)
This commit is contained in:
parent
7c60e69c33
commit
c58b00580e
1 changed files with 2 additions and 1 deletions
|
@ -1612,6 +1612,7 @@ inline std::string encode_query_param(const std::string &value) {
|
|||
|
||||
inline std::string encode_url(const std::string &s) {
|
||||
std::string result;
|
||||
result.reserve(s.size());
|
||||
|
||||
for (size_t i = 0; s[i]; i++) {
|
||||
switch (s[i]) {
|
||||
|
|
Loading…
Reference in a new issue