diff options
author | Rémy Coutable <remy@rymai.me> | 2016-12-21 13:45:28 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-12-21 13:46:16 +0300 |
commit | 359718603eb880bffc5688c16ceed170823b665a (patch) | |
tree | a7fa6201c0a72a2e7a3ee46cd46bc4fe5534e61c /lib/ci | |
parent | 09b622f84c83ea65c773ca4eb53d6899dc1c4956 (diff) |
Ensure nil User-Agent doesn't break the CI API
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'lib/ci')
-rw-r--r-- | lib/ci/api/helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ci/api/helpers.rb b/lib/ci/api/helpers.rb index 31fbd1da108..5ff25a3a9b2 100644 --- a/lib/ci/api/helpers.rb +++ b/lib/ci/api/helpers.rb @@ -60,7 +60,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! |