add redirect

This commit is contained in:
Easy 2022-03-26 21:32:59 +08:00
parent 3fa3d73859
commit 0ec3bbc7cc

View File

@ -133,6 +133,7 @@ bool file_put_contents(String url, String filename) {
WiFiClient client; WiFiClient client;
HTTPClient http; HTTPClient http;
http.setFollowRedirects(HTTPC_STRICT_FOLLOW_REDIRECTS);
http.begin(client, url); http.begin(client, url);