Skip to content

Commit

Permalink
Update AbstractEntity.php (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
powerpbx authored and swysor committed Jan 25, 2018
1 parent 6d47f83 commit 57b6f0a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/hz2600/Kazoo/Api/Entity/AbstractEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down

0 comments on commit 57b6f0a

Please sign in to comment.