Raw File View For PHP Strips Tags

This commit is contained in:
Matthew M. Keeler
2013-03-31 22:00:27 -05:00
parent fc32fd68ba
commit a1f9ac89eb

View File

@@ -59,10 +59,9 @@ class BlobController implements ControllerProviderInterface
$headers = array();
if ($app['util.repository']->isBinary($file)) {
$headers['Content-Disposition'] = 'attachment; filename="' . $file . '"';
$headers['Content-Transfer-Encoding'] = 'application/octet-stream';
$headers['Content-Transfer-Encoding'] = 'binary';
$headers['Content-Type'] = 'application/octet-stream';
} else {
$headers['Content-Transfer-Encoding'] = 'text/plain';
$headers['Content-Type'] = 'text/plain';
}
return new Response($blob, 200, $headers);