We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2bb1b5a commit b0c04b4Copy full SHA for b0c04b4
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