fix: fixed ERR_CONNECTION_RESET for Chrome based browsers

This commit is contained in:
Yurii
2024-11-20 23:10:42 +03:00
parent e8c7f58e67
commit b20b450736

View File

@@ -936,6 +936,14 @@ protected:
}
if (this->stateWebServer()) {
#ifdef ARDUINO_ARCH_ESP32
// Fix ERR_CONNECTION_RESET for Chrome based browsers
auto& client = this->webServer->client();
if (!client.getNoDelay()) {
client.setNoDelay(true);
}
#endif
this->webServer->handleClient();
}