From 57b6f0a0c7ff333659a0af3330ca2007bfa4d345 Mon Sep 17 00:00:00 2001 From: powerpbx Date: Thu, 25 Jan 2018 14:19:23 -0800 Subject: [PATCH] Update AbstractEntity.php (#122) --- lib/hz2600/Kazoo/Api/Entity/AbstractEntity.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]);