We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 685f2c9 commit 9ae9c5bCopy full SHA for 9ae9c5b
libraries/ESP8266WebServer/src/Parsing-impl.h
@@ -514,6 +514,7 @@ String ESP8266WebServerTemplate<ServerType>::urlDecode(const String& text)
514
char temp[] = "0x00";
515
unsigned int len = text.length();
516
unsigned int i = 0;
517
+ decoded.reserve(len - (std::count(text.begin(), text.end(), '%') * 2));
518
while (i < len)
519
{
520
char decodedChar;
0 commit comments