Skip to content

Commit

Permalink
Update Parsing.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
gpepe committed Apr 8, 2016
1 parent 3a95fb5 commit 502c45c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/ESP8266WebServer/src/Parsing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
if (searchStr != "") searchStr += '&';
char *plainBuf = nullptr;
size_t plainLen = 0;
while ( (plainLen == 0) || (plainLen < contentLength))
do
{
//some clients send headers first and data after (like we do)
//give them a chance
Expand All @@ -152,7 +152,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
client.readBytes(&plainBuf[plainLen], newLen);
plainLen += newLen;
plainBuf[plainLen] = '\0';
}
} while (plainLen < contentLength);
#ifdef DEBUG_ESP_HTTP_SERVER
DEBUG_OUTPUT.print("Plain: ");
DEBUG_OUTPUT.println(plainBuf);
Expand Down

0 comments on commit 502c45c

Please sign in to comment.