File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libraries/ESP8266WebServer/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -140,7 +140,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
140
140
if (searchStr != " " ) searchStr += ' &' ;
141
141
char *plainBuf = nullptr ;
142
142
size_t plainLen = 0 ;
143
- while ( (plainLen == 0 ) || (plainLen < contentLength))
143
+ do
144
144
{
145
145
// some clients send headers first and data after (like we do)
146
146
// give them a chance
@@ -152,7 +152,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
152
152
client.readBytes (&plainBuf[plainLen], newLen);
153
153
plainLen += newLen;
154
154
plainBuf[plainLen] = ' \0 ' ;
155
- }
155
+ } while (plainLen < contentLength);
156
156
#ifdef DEBUG_ESP_HTTP_SERVER
157
157
DEBUG_OUTPUT.print (" Plain: " );
158
158
DEBUG_OUTPUT.println (plainBuf);
You can’t perform that action at this time.
0 commit comments