From a1f9ac89eb44b583beac02cb20324aea249c4f94 Mon Sep 17 00:00:00 2001 From: "Matthew M. Keeler" Date: Sun, 31 Mar 2013 22:00:27 -0500 Subject: [PATCH] Raw File View For PHP Strips Tags --- src/GitList/Controller/BlobController.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/GitList/Controller/BlobController.php b/src/GitList/Controller/BlobController.php index d006fe7..c582354 100644 --- a/src/GitList/Controller/BlobController.php +++ b/src/GitList/Controller/BlobController.php @@ -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);