mirror of
https://github.com/esphome/esphome.git
synced 2025-09-14 17:22:20 +01:00
tweak
This commit is contained in:
@@ -579,7 +579,6 @@ esp_err_t AsyncWebServer::handle_multipart_upload_(httpd_req_t *r, const char *c
|
|||||||
// Create reader on heap to reduce stack usage
|
// Create reader on heap to reduce stack usage
|
||||||
auto reader = std::make_unique<MultipartReader>("--" + std::string(boundary_start, boundary_len));
|
auto reader = std::make_unique<MultipartReader>("--" + std::string(boundary_start, boundary_len));
|
||||||
|
|
||||||
// Find handler - keep request on stack since constructor is protected
|
|
||||||
AsyncWebServerRequest req(r);
|
AsyncWebServerRequest req(r);
|
||||||
AsyncWebHandler *handler = nullptr;
|
AsyncWebHandler *handler = nullptr;
|
||||||
for (auto *h : this->handlers_) {
|
for (auto *h : this->handlers_) {
|
||||||
|
Reference in New Issue
Block a user