We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f410ba2 + f6fff3f commit 6a67b1aCopy full SHA for 6a67b1a
src/WebHandlerImpl.h
@@ -105,6 +105,13 @@ class AsyncCallbackWebHandler: public AsyncWebHandler {
105
}
106
} else
107
#endif
108
+ if (_uri.length() && _uri.startsWith("/*.")) {
109
+ String uriTemplate = String (_uri);
110
+ uriTemplate = uriTemplate.substring(uriTemplate.lastIndexOf("."));
111
+ if (!request->url().endsWith(uriTemplate))
112
+ return false;
113
+ }
114
+ else
115
if (_uri.length() && _uri.endsWith("*")) {
116
String uriTemplate = String(_uri);
117
uriTemplate = uriTemplate.substring(0, uriTemplate.length() - 1);
0 commit comments