Browse Source

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

Handle redirects in a proper way.
7.x-1.10
Jonathan Green 7 years ago committed by GitHub
parent
commit
092ffa2ec8
  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. // to receive content for playback.
$chunk_headers = FALSE; $chunk_headers = FALSE;
if (isset($_SERVER['HTTP_RANGE'])) { 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. // Set headers specific to chunking.
$chunk_headers = islandora_view_datastream_set_chunk_headers($datastream); $chunk_headers = islandora_view_datastream_set_chunk_headers($datastream);
} }

Loading…
Cancel
Save