From 0ec3bbc7cc50bb40c3e6b3c6d2c2f79ca31672ef Mon Sep 17 00:00:00 2001 From: Easy Date: Sat, 26 Mar 2022 21:32:59 +0800 Subject: [PATCH] add redirect --- iot/deeresp/deeresp.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/iot/deeresp/deeresp.ino b/iot/deeresp/deeresp.ino index 97f45d5..b8a6e51 100644 --- a/iot/deeresp/deeresp.ino +++ b/iot/deeresp/deeresp.ino @@ -133,6 +133,7 @@ bool file_put_contents(String url, String filename) { WiFiClient client; HTTPClient http; + http.setFollowRedirects(HTTPC_STRICT_FOLLOW_REDIRECTS); http.begin(client, url);