mirror of
https://github.com/esp8266/Arduino.git
synced 2025-04-25 20:02:37 +03:00
Update Parsing.cpp
This commit is contained in:
parent
3a95fb5a94
commit
502c45c157
@ -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
|
||||
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user