Fix download issue
This commit is contained in:
parent
ebc0ea2bf8
commit
b74960ecd3
|
@ -131,7 +131,7 @@ class ViewController extends Controller
|
||||||
200,
|
200,
|
||||||
array(
|
array(
|
||||||
'Content-Disposition' => sprintf('filename=%s.%s', $gist->getFile(), $gist->getTypeAsExtension()),
|
'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',
|
'Content-Type' => 'application/force-download',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue