diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-06-06 13:16:30 +0200 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-06-06 13:16:30 +0200 |
commit | 8c3ba8d6c9021f250fb1597f6b597d817af46b38 (patch) | |
tree | 0282f6ce75ad214634839ab04cc1f111af06cd35 /app/controllers/projects/raw_controller.rb | |
parent | 3cb69f0c0b0049426e6abad0914812a9eef87b04 (diff) | |
download | gitlab-ce-8c3ba8d6c9021f250fb1597f6b597d817af46b38.tar.gz |
Add workhorse controller and API helpers
Diffstat (limited to 'app/controllers/projects/raw_controller.rb')
-rw-r--r-- | app/controllers/projects/raw_controller.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/projects/raw_controller.rb b/app/controllers/projects/raw_controller.rb index 10de0e60530..10d24da16d7 100644 --- a/app/controllers/projects/raw_controller.rb +++ b/app/controllers/projects/raw_controller.rb @@ -18,10 +18,7 @@ class Projects::RawController < Projects::ApplicationController if @blob.lfs_pointer? send_lfs_object else - headers.store(*Gitlab::Workhorse.send_git_blob(@repository, @blob)) - headers['Content-Disposition'] = 'inline' - headers['Content-Type'] = safe_content_type(@blob) - head :ok # 'render nothing: true' messes up the Content-Type + send_git_blob @repository, @blob end else render_404 |