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 authored and joeyparrish committed Feb 17, 2024
1 parent 4438ca1 commit 92d41dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,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 92d41dd

Please sign in to comment.