Follow redirects (#276)

This commit is contained in:
jaenek authored and GitHub committed 2020-07-28 17:18:01 -07:00
1 parent e59319f605
commit a1737e7842
1 file changed
+2 -1
+2 -1
View File
@@ -1,7 +1,7 @@
/*
AudioFileSourceHTTPStream
Streaming HTTP source
Copyright (C) 2017 Earle F. Philhower, III
This program is free software: you can redistribute it and/or modify
@@ -38,6 +38,7 @@ bool AudioFileSourceHTTPStream::open(const char *url)
{
pos = 0;
http.begin(client, url);
http.setFollowRedirects(true);
http.setReuse(true);
int code = http.GET();
if (code != HTTP_CODE_OK) {