From 4dd3a668dfdf2b0cfbfd0c06d7e7b34f0ad10aba Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Sat, 20 Jul 2024 19:10:20 +0200 Subject: [PATCH] fix http.GetString --- src/web/shuntingYard.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/shuntingYard.hpp b/src/web/shuntingYard.hpp index 9abd608a4..747a78ba8 100644 --- a/src/web/shuntingYard.hpp +++ b/src/web/shuntingYard.hpp @@ -630,7 +630,6 @@ std::string compute(const std::string & expr) { } else { httpResult = http.GET(); // normal GET } - http.end(); if (httpResult > 0) { std::string result = emsesp::Helpers::toLower(http.getString().c_str()); @@ -641,6 +640,7 @@ std::string compute(const std::string & expr) { } expr_new.replace(f, e - f, result.c_str()); } + http.end(); } } f = expr_new.find_first_of("{", e);