forked from me-no-dev/ESPAsyncWebServer
collect all headers for the default handler
This commit is contained in:
1 parent
c45b4002e5
commit
d65e4bd4e5
1 file changed
+1
-2
+1
-2
@@ -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