This commit is contained in:
J. Nick Koston 2025-06-29 22:14:15 -05:00
parent a74adb5865
commit 4082634e6d
No known key found for this signature in database

View File

@ -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_) {