Skip to content

Commit 378b6ac

Browse files
authored
Fix issue in webserver with Chrome based browsers
espressif#3652
1 parent b6cc108 commit 378b6ac

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: libraries/WebServer/src/WebServer.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -313,11 +313,12 @@ void WebServer::handleClient() {
313313
_contentLength = CONTENT_LENGTH_NOT_SET;
314314
_handleRequest();
315315

316-
if (_currentClient.connected()) {
317-
_currentStatus = HC_WAIT_CLOSE;
318-
_statusChange = millis();
319-
keepCurrentClient = true;
320-
}
316+
// Fix for issue with Chrome based browsers: https://github.com/espressif/arduino-esp32/issues/3652
317+
// if (_currentClient.connected()) {
318+
// _currentStatus = HC_WAIT_CLOSE;
319+
// _statusChange = millis();
320+
// keepCurrentClient = true;
321+
// }
321322
}
322323
} else { // !_currentClient.available()
323324
if (millis() - _statusChange <= HTTP_MAX_DATA_WAIT) {

0 commit comments

Comments
 (0)