From 3273aaa9f987e3441dcf3496aaf798c3af25d2fc Mon Sep 17 00:00:00 2001 From: Barbudor Date: Mon, 27 Nov 2023 12:38:52 +0100 Subject: [PATCH] Fix ESP32 webquery response (#20111) * logging webreponse * to test * final * simple --- tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino index 80ae89af5..4b5fb2003 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_01_9_webserver.ino @@ -3356,7 +3356,8 @@ int WebQuery(char *buffer) { if (http_code == HTTP_CODE_OK || http_code == HTTP_CODE_MOVED_PERMANENTLY) { #ifdef USE_WEBSEND_RESPONSE // Return received data to the user - Adds 900+ bytes to the code - const char* read = http.getString().c_str(); // File found at server - may need lot of ram or trigger out of memory! + String response = http.getString(); // File found at server - may need lot of ram or trigger out of memory! + const char* read = response.c_str(); ResponseClear(); Response_P(PSTR("{\"" D_CMND_WEBQUERY "\":")); char text[2] = { 0 };