forked from me-no-dev/ESPAsyncWebServer
collect all headers for the default handler
This commit is contained in:
@@ -65,6 +65,7 @@ void AsyncWebServer::_handleRequest(AsyncWebServerRequest *request){
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
request->addInterestingHeader("ANY");
|
||||||
request->setHandler(_catchAllHandler);
|
request->setHandler(_catchAllHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,5 +119,3 @@ void AsyncWebServer::onFileUpload(ArUploadHandlerFunction fn){
|
|||||||
void AsyncWebServer::onRequestBody(ArBodyHandlerFunction fn){
|
void AsyncWebServer::onRequestBody(ArBodyHandlerFunction fn){
|
||||||
((AsyncCallbackWebHandler*)_catchAllHandler)->onBody(fn);
|
((AsyncCallbackWebHandler*)_catchAllHandler)->onBody(fn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user