Skip to content

Commit

Permalink
small fix in follow redirects, and update of gzipped wwwroot
Browse files Browse the repository at this point in the history
  • Loading branch information
nlimper committed Oct 29, 2023
1 parent 22c5bda commit 246b234
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Binary file modified ESP32_AP-Flasher/data/www/main.css.gz
Binary file not shown.
Binary file modified ESP32_AP-Flasher/data/www/main.js.gz
Binary file not shown.
6 changes: 2 additions & 4 deletions ESP32_AP-Flasher/include/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 246b234

Please sign in to comment.