mirror of
https://github.com/esphome/esphome.git
synced 2025-08-10 12:27:46 +00:00
Merge branch 'webserver_eliminate_heap_url_match' into integration
This commit is contained in:
@@ -1753,7 +1753,7 @@ bool WebServer::canHandle(AsyncWebServerRequest *request) const {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UrlMatch match = match_url(request->url(), true); // NOLINT
|
UrlMatch match = match_url(request->url().c_str(), true); // NOLINT
|
||||||
if (!match.valid)
|
if (!match.valid)
|
||||||
return false;
|
return false;
|
||||||
#ifdef USE_SENSOR
|
#ifdef USE_SENSOR
|
||||||
@@ -1892,7 +1892,7 @@ void WebServer::handleRequest(AsyncWebServerRequest *request) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
UrlMatch match = match_url(request->url()); // NOLINT
|
UrlMatch match = match_url(request->url().c_str()); // NOLINT
|
||||||
#ifdef USE_SENSOR
|
#ifdef USE_SENSOR
|
||||||
if (match.domain_equals("sensor")) {
|
if (match.domain_equals("sensor")) {
|
||||||
this->handle_sensor_request(request, match);
|
this->handle_sensor_request(request, match);
|
||||||
|
Reference in New Issue
Block a user