diff --git a/ESP32_AP-Flasher/data/www/main.css.gz b/ESP32_AP-Flasher/data/www/main.css.gz index d3107cf0..9fc127a7 100644 Binary files a/ESP32_AP-Flasher/data/www/main.css.gz and b/ESP32_AP-Flasher/data/www/main.css.gz differ diff --git a/ESP32_AP-Flasher/data/www/main.js.gz b/ESP32_AP-Flasher/data/www/main.js.gz index 89ce9afa..5f56f52c 100644 Binary files a/ESP32_AP-Flasher/data/www/main.js.gz and b/ESP32_AP-Flasher/data/www/main.js.gz differ diff --git a/ESP32_AP-Flasher/include/util.h b/ESP32_AP-Flasher/include/util.h index 32b33834..49a1c1e4 100644 --- a/ESP32_AP-Flasher/include/util.h +++ b/ESP32_AP-Flasher/include/util.h @@ -69,15 +69,13 @@ static void printLargestFreeBlock() { /// @param url Request URL /// @param json Json document to fill /// @param timeout Request timeout -/// @param redirects Redirects handling /// @return True on success, false on error (httpCode != 200 || deserialization error) -static bool httpGetJson(String &url, JsonDocument &json, const uint16_t timeout, JsonDocument *filter = nullptr) //, const followRedirects_t redirects = followRedirects_t::HTTPC_DISABLE_FOLLOW_REDIRECTS) -{ +static bool httpGetJson(String &url, JsonDocument &json, const uint16_t timeout, JsonDocument *filter = nullptr) { HTTPClient http; logLine("http httpGetJson " + url); http.begin(url); http.setTimeout(timeout); - // http.setFollowRedirects(redirects); + http.setFollowRedirects(HTTPC_STRICT_FOLLOW_REDIRECTS); const int httpCode = http.GET(); if (httpCode != 200) { http.end();