Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-01 13:33:22 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-02-01 13:33:22 +0300
commit02afa6793cca042f8563b0e26472606c743d76f5 (patch)
treec2242a77660c2f07fefe3b0879b17a4e743bee53 /lib/api/repositories.rb
parent0197549d57bd32ee933ee775c625ed6fc5f5eec8 (diff)
Use only one header to send git blobs
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r--lib/api/repositories.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb
index 0f4cd2443b0..c95d2d2001d 100644
--- a/lib/api/repositories.rb
+++ b/lib/api/repositories.rb
@@ -57,8 +57,7 @@ module API
not_found! "File" unless blob
content_type 'text/plain'
- header 'Gitlab-Workhorse-Repo-Path', repo.path_to_repo
- header 'Gitlab-Workhorse-Send-Blob', blob.id
+ header *Gitlab::Workhorse.send_git_blob(repo, blob)
end
# Get a raw blob contents by blob sha
@@ -84,8 +83,7 @@ module API
env['api.format'] = :txt
content_type blob.mime_type
- header 'Gitlab-Workhorse-Repo-Path', repo.path_to_repo
- header 'Gitlab-Workhorse-Send-Blob', blob.id
+ header *Gitlab::Workhorse.send_git_blob(repo, blob)
end
# Get a an archive of the repository