mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-07-04 14:29:26 +02:00
Merge pull request #301 from keelerm84/view-raw-files
Raw File View For PHP Strips Tags
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user