From 90258c566a5d5326073e44a6c3cc0c862568cf99 Mon Sep 17 00:00:00 2001 From: "Earle F. Philhower, III" Date: Sun, 25 Oct 2020 17:29:12 -0700 Subject: [PATCH] Fix HTTP redirects with latest releases on ESP8266 (#319) --- library.json | 2 +- src/AudioFileSourceHTTPStream.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library.json b/library.json index 13d70bf..1a7c3e7 100644 --- a/library.json +++ b/library.json @@ -14,7 +14,7 @@ "type": "git", "url": "https://github.com/earlephilhower/ESP8266Audio" }, - "version": "1.5.1", + "version": "1.6", "homepage": "https://github.com/earlephilhower/ESP8266Audio", "dependencies": { "SPI": "1.0", diff --git a/src/AudioFileSourceHTTPStream.cpp b/src/AudioFileSourceHTTPStream.cpp index ed659ee..09d1e0c 100644 --- a/src/AudioFileSourceHTTPStream.cpp +++ b/src/AudioFileSourceHTTPStream.cpp @@ -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) {