mirror of
https://github.com/esphome/esphome.git
synced 2025-08-07 02:47:47 +00:00
tweak
This commit is contained in:
parent
a74adb5865
commit
4082634e6d
@ -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_) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user