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
path: root/lib
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2016-12-21 14:54:22 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-12-21 15:40:47 +0300
commit9e17ec760e84937c80f035e4d8798310e818afba (patch)
tree123720467ad9300622f879ef6b185f7943d75dc7 /lib
parentefc97cbc5396d8bc06a28918e18ee0b6bfa74713 (diff)
Merge branch '25895-fix-headers-in-ci-api-helpers' into 'master'
Ensure nil User-Agent doesn't break the CI API Closes #25895 See merge request !8213
Diffstat (limited to 'lib')
-rw-r--r--lib/ci/api/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb
index e608f5f6cad..ea1ebd14d00 100644
--- a/lib/ci/api/helpers.rb
+++ b/lib/ci/api/helpers.rb
@@ -49,7 +49,7 @@ module Ci
end
def build_not_found!
- if headers['User-Agent'].match(/gitlab-ci-multi-runner \d+\.\d+\.\d+(~beta\.\d+\.g[0-9a-f]+)? /)
+ if headers['User-Agent'].to_s.match(/gitlab-ci-multi-runner \d+\.\d+\.\d+(~beta\.\d+\.g[0-9a-f]+)? /)
no_content!
else
not_found!