ESPAsyncWebServer icon indicating copy to clipboard operation
ESPAsyncWebServer copied to clipboard

Change bool AsyncStaticWebHandler::canHandle to use exact match instead of String::startsWith(_uri)

Open Zhu-jiatong opened this issue 1 year ago • 0 comments

Change URL matching to use exact match instead of startsWith(_uri). This could improve the URL matching experience and enable he use of nested URLs, such as "/file" and "/file/add".

Change: !request->url().startsWith(_uri) -> request->url() != _uri

Zhu-jiatong avatar Jun 06 '24 04:06 Zhu-jiatong