Browse Source

Fix Headers for FlowPlayer

FlowPlayer requires the "Content-Length" header to be returned in order to work properly,
but it wasn't getting returned in the header when a user was not logged in.
A slight change to the semantics, and opening up of the getDatastream API-M method via
XACML seems to work.
pull/101/head
Adam Vessey 14 years ago committed by Adam
parent
commit
d36fdd291c
  1. 6
      ObjectHelper.inc

6
ObjectHelper.inc

@ -94,14 +94,14 @@ class ObjectHelper {
if ((!isset($user)) || $user->uid == 0) { if ((!isset($user)) || $user->uid == 0) {
$fedoraUser = 'anonymous'; $fedoraUser = 'anonymous';
$fedoraPass = 'anonymous'; $fedoraPass = 'anonymous';
$contentSize = 0;
} else { } else {
$fedoraUser = $user->name; $fedoraUser = $user->name;
$fedoraPass = $user->pass; $fedoraPass = $user->pass;
$dataStreamInfo = $item->get_datastream_info($dsID);
$contentSize = $dataStreamInfo->datastream->size;
} }
$dataStreamInfo = $item->get_datastream_info($dsID);
$contentSize = $dataStreamInfo->datastream->size;
if (function_exists("curl_init")) { if (function_exists("curl_init")) {
if (!isset($mimeType)) { if (!isset($mimeType)) {
$pid = variable_get('fedora_default_display_pid', 'demo:10'); $pid = variable_get('fedora_default_display_pid', 'demo:10');

Loading…
Cancel
Save