We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c29ec9d commit e1548e9Copy full SHA for e1548e9
libraries/WebServer/src/Parsing.cpp
@@ -303,6 +303,7 @@ void WebServer::_uploadWriteByte(uint8_t b){
303
}
304
305
int WebServer::_uploadReadByte(WiFiClient& client){
306
+ if (!client.connected()) return -1;
307
int res = client.read();
308
if(res < 0) {
309
// keep trying until you either read a valid byte or timeout
0 commit comments