Fix HTTP redirects with latest releases on ESP8266 (#319)
This commit is contained in:
1 parent
0ec3bc3b31
commit
90258c566a
2 files changed
+2
-2
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user