mirror of
https://github.com/me-no-dev/ESPAsyncWebServer.git
synced 2026-01-26 08:42:19 +01:00
This commit solves issues 172 and 198 (#207)
* This commit solves issues 172 and 198 * This commit solves issues 172 and 198
This commit is contained in:
@@ -307,7 +307,7 @@ size_t AsyncEventSource::count() const {
|
||||
}
|
||||
|
||||
bool AsyncEventSource::canHandle(AsyncWebServerRequest *request){
|
||||
if(request->method() != HTTP_GET || !request->url().equals(_url))
|
||||
if(request->method() != HTTP_GET || !request->url().equals(_url) || !request->isExpectedRequestedConnType(RCT_EVENT))
|
||||
return false;
|
||||
request->addInterestingHeader("Last-Event-ID");
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user