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-01-28 20:04:46 +0300
committerJacob Vosmaer <contact@jacobvosmaer.nl>2016-01-28 20:04:46 +0300
commit26d97ac5e19c242594b59d224a77d41d0f1de6e1 (patch)
treea3b9fab50b744b3480b9db242538484ebb76b834 /lib/api/repositories.rb
parent9109619ee6fe85ee7e8ebfa51c6587319b523930 (diff)
Send more raw blob data with workhorse
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r--lib/api/repositories.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb
index d7c48639eba..0f4cd2443b0 100644
--- a/lib/api/repositories.rb
+++ b/lib/api/repositories.rb
@@ -57,7 +57,8 @@ module API
not_found! "File" unless blob
content_type 'text/plain'
- present blob.data
+ header 'Gitlab-Workhorse-Repo-Path', repo.path_to_repo
+ header 'Gitlab-Workhorse-Send-Blob', blob.id
end
# Get a raw blob contents by blob sha
@@ -83,7 +84,8 @@ module API
env['api.format'] = :txt
content_type blob.mime_type
- present blob.data
+ header 'Gitlab-Workhorse-Repo-Path', repo.path_to_repo
+ header 'Gitlab-Workhorse-Send-Blob', blob.id
end
# Get a an archive of the repository