Skip to content

Commit

Permalink
fix(DASH): Fix false redirect detection (#5910)
Browse files Browse the repository at this point in the history
Fixes #2216
  • Loading branch information
avelad committed Nov 21, 2023
1 parent 966b910 commit 3a68623
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dash/dash_parser.js
Expand Up @@ -285,7 +285,8 @@ shaka.dash.DashParser = class {

// For redirections add the response uri to the first entry in the
// Manifest Uris array.
if (response.uri && !this.manifestUris_.includes(response.uri)) {
if (response.uri && response.uri != response.originalUri &&
!this.manifestUris_.includes(response.uri)) {
this.manifestUris_.unshift(response.uri);
}

Expand Down

0 comments on commit 3a68623

Please sign in to comment.