mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
fix memory leak #2216, dev.9
This commit is contained in:
@@ -12,6 +12,7 @@ For more details go to [docs.emsesp.org](https://docs.emsesp.org/).
|
|||||||
- Bosch CS6800i AW - Silent Mode + Electrical Power Reduction (HP) [#2147](https://github.com/emsesp/EMS-ESP32/issues/2147)
|
- Bosch CS6800i AW - Silent Mode + Electrical Power Reduction (HP) [#2147](https://github.com/emsesp/EMS-ESP32/issues/2147)
|
||||||
- `/api/system/showeralert` and `/api/system/showertimer` [#2182](https://github.com/emsesp/EMS-ESP32/issues/2182)
|
- `/api/system/showeralert` and `/api/system/showertimer` [#2182](https://github.com/emsesp/EMS-ESP32/issues/2182)
|
||||||
- MX400 [#2198](https://github.com/emsesp/EMS-ESP32/issues/2198)
|
- MX400 [#2198](https://github.com/emsesp/EMS-ESP32/issues/2198)
|
||||||
|
- SM200 values [#2212](https://github.com/emsesp/EMS-ESP32/discussions/2212)
|
||||||
|
|
||||||
## Fixed
|
## Fixed
|
||||||
|
|
||||||
@@ -24,5 +25,8 @@ For more details go to [docs.emsesp.org](https://docs.emsesp.org/).
|
|||||||
- reading too many telegram parts
|
- reading too many telegram parts
|
||||||
- heatpump cost UOMs [#2188](https://github.com/emsesp/EMS-ESP32/issues/2188)
|
- heatpump cost UOMs [#2188](https://github.com/emsesp/EMS-ESP32/issues/2188)
|
||||||
- analog dac output and inputs on dac pins [#2201](https://github.com/emsesp/EMS-ESP32/discussions/2201)
|
- analog dac output and inputs on dac pins [#2201](https://github.com/emsesp/EMS-ESP32/discussions/2201)
|
||||||
|
- api memory leak [#2216](https://github.com/emsesp/EMS-ESP32/issues/2216)
|
||||||
|
|
||||||
## Changed
|
## Changed
|
||||||
|
|
||||||
|
- name of wwstarts2 [#2217](https://github.com/emsesp/EMS-ESP32/discussions/2217)
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
#define EMSESP_APP_VERSION "3.7.1-dev.8"
|
#define EMSESP_APP_VERSION "3.7.1-dev.9"
|
||||||
@@ -32,13 +32,12 @@ WebAPIService::WebAPIService(AsyncWebServer * server, SecurityManager * security
|
|||||||
// POST|GET api/{device}
|
// POST|GET api/{device}
|
||||||
// POST|GET api/{device}/{entity}
|
// POST|GET api/{device}/{entity}
|
||||||
void WebAPIService::webAPIService(AsyncWebServerRequest * request, JsonVariant json) {
|
void WebAPIService::webAPIService(AsyncWebServerRequest * request, JsonVariant json) {
|
||||||
|
JsonDocument input_doc; // has no body JSON so create dummy as empty input object
|
||||||
JsonObject input;
|
JsonObject input;
|
||||||
// if no body then treat it as a secure GET
|
// if no body then treat it as a secure GET
|
||||||
if ((request->method() == HTTP_GET) || (!json.is<JsonObject>())) {
|
if ((request->method() == HTTP_GET) || (!json.is<JsonObject>())) {
|
||||||
// HTTP GET
|
// HTTP GET
|
||||||
JsonDocument input_doc; // has no body JSON so create dummy as empty input object
|
|
||||||
input = input_doc.to<JsonObject>();
|
input = input_doc.to<JsonObject>();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// HTTP_POST
|
// HTTP_POST
|
||||||
input = json.as<JsonObject>(); // extract values from the json. these will be used as default values
|
input = json.as<JsonObject>(); // extract values from the json. these will be used as default values
|
||||||
|
|||||||
Reference in New Issue
Block a user