Merge pull request #34 from henriquebremenkanp/patch-1

Fix #26 by correcting HTTP Header
This commit is contained in:
Phan An 2015-12-15 08:05:17 +08:00
commit c3720e9014

View file

@ -80,7 +80,7 @@ class PHPStreamer extends BaseStreamer implements StreamerInterface
// Send standard headers
header("Content-Type: {$this->contentType}");
header("Content-Length: $fileSize");
header("Content-Length: $length");
header('Content-Disposition: attachment; filename="'.basename($this->song->path).'"');
header('Accept-Ranges: bytes');