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,13 +94,13 @@ class ObjectHelper {
if ((!isset($user)) || $user->uid == 0) {
$fedoraUser = 'anonymous';
$fedoraPass = 'anonymous';
$contentSize = 0;
} else {
$fedoraUser = $user->name;
$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 (!isset($mimeType)) {

Loading…
Cancel
Save