mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-10 18:24:27 +05:00
fix: fixed ERR_CONNECTION_RESET for Chrome based browsers
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user