Merge pull request #96 from DRSDavidSoft/main

Fix minor typos
This commit is contained in:
Mathieu Carbou
2024-09-06 10:19:29 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -647,7 +647,7 @@ class AsyncWebServer {
/** /**
* @brief (compat) Add url rewrite rule by pointer * @brief (compat) Add url rewrite rule by pointer
* a deep copy of the pounter object will be created, * a deep copy of the pointer object will be created,
* it is up to user to manage further lifetime of the object in argument * it is up to user to manage further lifetime of the object in argument
* *
* @param rewrite pointer to rewrite object to copy setting from * @param rewrite pointer to rewrite object to copy setting from

View File

@ -112,7 +112,7 @@ class AsyncCallbackWebHandler : public AsyncWebHandler {
} }
} else } else
#endif #endif
if (_uri.length() && _uri.startsWith("/*.")) { if (_uri.length() && _uri.startsWith("/*.")) {
String uriTemplate = String(_uri); String uriTemplate = String(_uri);
uriTemplate = uriTemplate.substring(uriTemplate.lastIndexOf(".")); uriTemplate = uriTemplate.substring(uriTemplate.lastIndexOf("."));
if (!request->url().endsWith(uriTemplate)) if (!request->url().endsWith(uriTemplate))