Merge pull request #301 from keelerm84/view-raw-files

Raw File View For PHP Strips Tags
This commit is contained in:
Klaus Silveira
2013-04-18 10:36:31 -07:00

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);