mirror of
https://github.com/esp8266/Arduino.git
synced 2025-05-08 05:41:40 +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 += '&';
|
if (searchStr != "") searchStr += '&';
|
||||||
char *plainBuf = nullptr;
|
char *plainBuf = nullptr;
|
||||||
size_t plainLen = 0;
|
size_t plainLen = 0;
|
||||||
while ( (plainLen == 0) || (plainLen < contentLength))
|
do
|
||||||
{
|
{
|
||||||
//some clients send headers first and data after (like we do)
|
//some clients send headers first and data after (like we do)
|
||||||
//give them a chance
|
//give them a chance
|
||||||
@ -152,7 +152,7 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
|
|||||||
client.readBytes(&plainBuf[plainLen], newLen);
|
client.readBytes(&plainBuf[plainLen], newLen);
|
||||||
plainLen += newLen;
|
plainLen += newLen;
|
||||||
plainBuf[plainLen] = '\0';
|
plainBuf[plainLen] = '\0';
|
||||||
}
|
} while (plainLen < contentLength);
|
||||||
#ifdef DEBUG_ESP_HTTP_SERVER
|
#ifdef DEBUG_ESP_HTTP_SERVER
|
||||||
DEBUG_OUTPUT.print("Plain: ");
|
DEBUG_OUTPUT.print("Plain: ");
|
||||||
DEBUG_OUTPUT.println(plainBuf);
|
DEBUG_OUTPUT.println(plainBuf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user