Browse Source

Merge pull request #691 from jordandukart/7.x-ISLANDORA-2084

Handle redirects in a proper way.
pull/696/head
Jonathan Green 7 years ago committed by GitHub
parent
commit
e2fd2fb892
  1. 5
      includes/datastream.inc

5
includes/datastream.inc

@ -86,6 +86,11 @@ function islandora_view_datastream(AbstractDatastream $datastream, $download = F
// to receive content for playback.
$chunk_headers = FALSE;
if (isset($_SERVER['HTTP_RANGE'])) {
// XXX: Can't make assertions on byte ranging of redirect datastreams.
// @see https://jira.duraspace.org/browse/ISLANDORA-2084.
if (!$download && $datastream->controlGroup == 'R') {
drupal_goto($datastream->url);
}
// Set headers specific to chunking.
$chunk_headers = islandora_view_datastream_set_chunk_headers($datastream);
}

Loading…
Cancel
Save