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:
Me No Dev
2017-08-18 17:52:21 +03:00
committed by GitHub
parent 05ed854d7b
commit 77a520ba24
5 changed files with 110 additions and 28 deletions

View File

@@ -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;