mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-02 21:48:44 +05:00
fix: fixed ERR_CONNECTION_RESET for Chrome based browsers
This commit is contained in:
1 parent
e8c7f58e67
commit
b20b450736
1 file changed
+8
@@ -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