From 7bb251102ef718b4007536f41ad8f5ee4ed00b35 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Wed, 29 Jul 2020 07:48:27 -0700 Subject: [PATCH] Only follow HTTP redirects on ESP8266 ESP32 doesn't have the redirect following capability, don't try and turn it on. --- src/AudioFileSourceHTTPStream.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/AudioFileSourceHTTPStream.cpp b/src/AudioFileSourceHTTPStream.cpp index 3c6ada8..ed659ee 100644 --- a/src/AudioFileSourceHTTPStream.cpp +++ b/src/AudioFileSourceHTTPStream.cpp @@ -38,8 +38,10 @@ bool AudioFileSourceHTTPStream::open(const char *url) { pos = 0; http.begin(client, url); - http.setFollowRedirects(true); http.setReuse(true); +#ifndef ESP32 + http.setFollowRedirects(true); +#endif int code = http.GET(); if (code != HTTP_CODE_OK) { http.end();