remove unused http

This commit is contained in:
proddy
2026-04-16 08:44:44 +02:00
parent f8257de0dd
commit dfe7b46461

View File

@@ -352,7 +352,7 @@ bool WebSchedulerService::command(const char * name, const std::string & command
// parse json // parse json
JsonDocument doc; JsonDocument doc;
if (deserializeJson(doc, cmd) == DeserializationError::Ok) { if (deserializeJson(doc, cmd) == DeserializationError::Ok) {
HTTPClient http; // HTTPClient http;
std::string url = doc["url"] | ""; std::string url = doc["url"] | "";
// for a GET with parameters replace commands with values // for a GET with parameters replace commands with values
// don't search the complete url, it may contain a devicename in path // don't search the complete url, it may contain a devicename in path
@@ -461,7 +461,7 @@ bool WebSchedulerService::command(const char * name, const std::string & command
return true; return true;
} else } else
#endif #endif
if (Helpers::toLower(url.c_str()).starts_with("http://")) { if (Helpers::toLower(url.c_str()).starts_with("http://")) {
HTTPClient * http = new HTTPClient; HTTPClient * http = new HTTPClient;
if (http->begin(url.c_str())) { if (http->begin(url.c_str())) {
bool content_set = false; bool content_set = false;