diff --git a/platformio.ini b/platformio.ini index 987f8b4..fbd4333 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 b8b8138..b5335b0 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); }