We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1031e26 commit 1c3225fCopy full SHA for 1c3225f
libraries/ESP8266WebServer/src/Parsing.cpp
@@ -108,6 +108,10 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
108
109
if (!isForm){
110
if (searchStr != "") searchStr += '&';
111
+ //some clients send headers first and data after (like we do)
112
+ //give them a chance
113
+ int tries = 100;//100ms max wait
114
+ while(!client.available() && tries--)delay(1);
115
size_t plainLen = client.available();
116
char *plainBuf = (char*)malloc(plainLen+1);
117
client.readBytes(plainBuf, plainLen);
0 commit comments