From 03137e15dd80c991da289fedfd89a18aa2b69bbf Mon Sep 17 00:00:00 2001 From: Thomas Basler Date: Thu, 1 Aug 2024 18:11:39 +0200 Subject: [PATCH] Upgrade ESPAsyncWebServer from 2.10.8 to 3.1.2 --- platformio.ini | 2 +- src/WebApi_webapp.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platformio.ini b/platformio.ini index 987f8b4db..fbd43337c 100644 --- a/platformio.ini +++ b/platformio.ini @@ -38,7 +38,7 @@ build_unflags = -std=gnu++11 lib_deps = - mathieucarbou/ESP Async WebServer @ 2.10.8 + mathieucarbou/ESPAsyncWebServer @ 3.1.2 bblanchon/ArduinoJson @ 7.0.4 https://github.com/bertmelis/espMqttClient.git#v1.7.0 nrf24/RF24 @ 1.4.8 diff --git a/src/WebApi_webapp.cpp b/src/WebApi_webapp.cpp index b8b813853..b5335b02d 100644 --- a/src/WebApi_webapp.cpp +++ b/src/WebApi_webapp.cpp @@ -42,7 +42,7 @@ void WebApiWebappClass::responseBinaryDataWithETagCache(AsyncWebServerRequest *r if (eTagMatch) { response = request->beginResponse(304); } else { - response = request->beginResponse_P(200, contentType, content, len); + response = request->beginResponse(200, contentType, content, len); if (contentEncoding.length() > 0) { response->addHeader("Content-Encoding", contentEncoding); }