mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Merge pull request #169 from google/dev
Correctly handle redirection when requesting manifests.
This commit is contained in:
commit
f034ee7d40
@ -293,7 +293,7 @@ public class ManifestFetcher<T> implements Loader.Callback {
|
||||
inputStream = connection.getInputStream();
|
||||
inputEncoding = connection.getContentEncoding();
|
||||
result = parser.parse(inputStream, inputEncoding, contentId,
|
||||
Util.parseBaseUri(manifestUrl));
|
||||
Util.parseBaseUri(connection.getURL().toString()));
|
||||
} finally {
|
||||
if (inputStream != null) {
|
||||
inputStream.close();
|
||||
|
Loading…
x
Reference in New Issue
Block a user