Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit 78fe403

Browse files
kaegime-no-dev
authored andcommitted
adjust canHandle() for AsyncEventSource (me-no-dev#474)
1 parent f5b51fa commit 78fe403

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/AsyncEventSource.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,9 @@ size_t AsyncEventSource::count() const {
307307
}
308308

309309
bool AsyncEventSource::canHandle(AsyncWebServerRequest *request){
310-
if(request->method() != HTTP_GET || !request->url().equals(_url) || !request->isExpectedRequestedConnType(RCT_EVENT))
310+
if(request->method() != HTTP_GET || !request->url().equals(_url)) {
311311
return false;
312+
}
312313
request->addInterestingHeader("Last-Event-ID");
313314
return true;
314315
}

0 commit comments

Comments
 (0)