mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2026-01-27 09:12:18 +01:00
Add Middleware support in ESPAsyncWebServer
This commit is contained in:
@@ -1086,9 +1086,6 @@ void AsyncWebSocket::handleRequest(AsyncWebServerRequest* request) {
|
||||
request->send(400);
|
||||
return;
|
||||
}
|
||||
if ((_username.length() && _password.length()) && !request->authenticate(_username.c_str(), _password.c_str())) {
|
||||
return request->requestAuthentication();
|
||||
}
|
||||
if (_handshakeHandler != nullptr) {
|
||||
if (!_handshakeHandler(request)) {
|
||||
request->send(401);
|
||||
|
||||
Reference in New Issue
Block a user