forked from deblan/gist
1
0
Fork 0

Fix download issue

This commit is contained in:
Simon Vieille 2017-10-16 13:32:01 +02:00
parent ebc0ea2bf8
commit b74960ecd3
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ class ViewController extends Controller
200,
array(
'Content-Disposition' => sprintf('filename=%s.%s', $gist->getFile(), $gist->getTypeAsExtension()),
'Content-Length' => filesize($file),
'Content-Length' => mb_strlen($viewOptions['raw_content']),
'Content-Type' => 'application/force-download',
)
);