diff options
author | Kamil TrzciĆski <ayufan@ayufan.eu> | 2016-12-21 11:54:22 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-12-21 10:40:47 -0200 |
commit | 9e17ec760e84937c80f035e4d8798310e818afba (patch) | |
tree | 123720467ad9300622f879ef6b185f7943d75dc7 /lib | |
parent | efc97cbc5396d8bc06a28918e18ee0b6bfa74713 (diff) | |
download | gitlab-ce-9e17ec760e84937c80f035e4d8798310e818afba.tar.gz |
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.rb | 2 |
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! |