summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2015-11-09 12:49:47 +0100
committerKamil Trzcinski <ayufan@ayufan.eu>2015-11-10 12:51:51 +0100
commit445cdb7579792d0d76c2562b971583bd7d05429b (patch)
tree36b7f79a5dbb6479c2d0f15d508affde6c25ed44 /lib/api
parent97f58bae87dfcfb36d5a7a490b1c0983435a19f4 (diff)
downloadgitlab-ce-445cdb7579792d0d76c2562b971583bd7d05429b.tar.gz
Move tmp artifacts to shared/artifacts/tmp/. Check for GitLab-Workhorse now
Diffstat (limited to 'lib/api')
-rw-r--r--lib/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers.rb b/lib/api/helpers.rb
index b980cd8391e..077537959d7 100644
--- a/lib/api/helpers.rb
+++ b/lib/api/helpers.rb
@@ -134,7 +134,7 @@ module API
end
def require_gitlab_workhorse!
- unless headers['Gitlab-Git-Http-Server'].present? || headers['GitLab-Git-HTTP-Server'].present?
+ unless env['HTTP_GITLAB_WORKHORSE'].present?
forbidden!('Request should be executed via GitLab Workhorse')
end
end