diff --git a/lib/hz2600/Kazoo/Api/Entity/AbstractEntity.php b/lib/hz2600/Kazoo/Api/Entity/AbstractEntity.php index 19b646469..13714e328 100644 --- a/lib/hz2600/Kazoo/Api/Entity/AbstractEntity.php +++ b/lib/hz2600/Kazoo/Api/Entity/AbstractEntity.php @@ -164,10 +164,12 @@ public function getRaw($stream = false) { $this->setTokenValue($this->getEntityIdName(), $this->getId()); $uri = $this->getURI('/raw'); - $x = $this->getSDK()->get($uri, array(), array('accept'=>'audio/*', 'content_type'=>'audio/*')); + $x = $this->getSDK()->get($uri, array(), array('accept'=>'audio/*', + 'content_type'=>'audio/*', 'Range'=> 'bytes')); header('Content-Type: '.$x->getHeader('Content-Type')[0]); header('content-length: '.$x->getHeader('content-length')[0]); + header('Accept-Ranges: '.$x->getHeader('Accept-Ranges')[0]); if (!$stream) { header('Content-Disposition: '.$x->getHeader('Content-Disposition')[0]);