We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a95fb5 commit 502c45cCopy full SHA for 502c45c
1 file changed
libraries/ESP8266WebServer/src/Parsing.cpp
@@ -140,7 +140,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
140
if (searchStr != "") searchStr += '&';
141
char *plainBuf = nullptr;
142
size_t plainLen = 0;
143
- while ( (plainLen == 0) || (plainLen < contentLength))
+ do
144
{
145
//some clients send headers first and data after (like we do)
146
//give them a chance
@@ -152,7 +152,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
152
client.readBytes(&plainBuf[plainLen], newLen);
153
plainLen += newLen;
154
plainBuf[plainLen] = '\0';
155
- }
+ } while (plainLen < contentLength);
156
#ifdef DEBUG_ESP_HTTP_SERVER
157
DEBUG_OUTPUT.print("Plain: ");
158
DEBUG_OUTPUT.println(plainBuf);
0 commit comments