diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-02-01 13:33:22 +0300 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-02-01 13:33:22 +0300 |
commit | 02afa6793cca042f8563b0e26472606c743d76f5 (patch) | |
tree | c2242a77660c2f07fefe3b0879b17a4e743bee53 /app/controllers/projects/raw_controller.rb | |
parent | 0197549d57bd32ee933ee775c625ed6fc5f5eec8 (diff) |
Use only one header to send git blobs
Diffstat (limited to 'app/controllers/projects/raw_controller.rb')
-rw-r--r-- | app/controllers/projects/raw_controller.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/projects/raw_controller.rb b/app/controllers/projects/raw_controller.rb index b8b90489027..2ab8a6b83bb 100644 --- a/app/controllers/projects/raw_controller.rb +++ b/app/controllers/projects/raw_controller.rb @@ -15,8 +15,7 @@ class Projects::RawController < Projects::ApplicationController if @blob.lfs_pointer? send_lfs_object else - headers['Gitlab-Workhorse-Repo-Path'] = @repository.path_to_repo - headers['Gitlab-Workhorse-Send-Blob'] = @blob.id + headers.store(*Gitlab::Workhorse.send_git_blob(@repository, @blob)) headers['Content-Disposition'] = 'inline' render nothing: true, content_type: get_blob_type end |