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