diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-11-09 12:49:47 +0100 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-11-10 12:51:51 +0100 |
commit | 445cdb7579792d0d76c2562b971583bd7d05429b (patch) | |
tree | 36b7f79a5dbb6479c2d0f15d508affde6c25ed44 /lib/api/helpers.rb | |
parent | 97f58bae87dfcfb36d5a7a490b1c0983435a19f4 (diff) | |
download | gitlab-ce-445cdb7579792d0d76c2562b971583bd7d05429b.tar.gz |
Move tmp artifacts to shared/artifacts/tmp/. Check for GitLab-Workhorse now
Diffstat (limited to 'lib/api/helpers.rb')
-rw-r--r-- | lib/api/helpers.rb | 2 |
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 |