Fix HTTP redirects with latest releases on ESP8266 (#319)

This commit is contained in:
Earle F. Philhower, III authored and GitHub committed 2020-10-25 17:29:12 -07:00
1 parent 0ec3bc3b31
commit 90258c566a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -40,7 +40,7 @@ bool AudioFileSourceHTTPStream::open(const char *url)
http.begin(client, url);
http.setReuse(true);
#ifndef ESP32
http.setFollowRedirects(true);
http.setFollowRedirects(HTTPC_FORCE_FOLLOW_REDIRECTS);
#endif
int code = http.GET();
if (code != HTTP_CODE_OK) {