diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-04 15:10:36 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-04 15:10:36 +0000 |
| commit | be4b3134a282f7a8812306777abd2d3150deecdc (patch) | |
| tree | 0563327ce590b415047686c6feff43496742b49a /lib/api/helpers/headers_helpers.rb | |
| parent | 998adcc422d4161515bf2960ef4dce71258f69a3 (diff) | |
| download | gitlab-ce-be4b3134a282f7a8812306777abd2d3150deecdc.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/api/helpers/headers_helpers.rb')
| -rw-r--r-- | lib/api/helpers/headers_helpers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/helpers/headers_helpers.rb b/lib/api/helpers/headers_helpers.rb index 908c57bb04e..56445ccbd0d 100644 --- a/lib/api/helpers/headers_helpers.rb +++ b/lib/api/helpers/headers_helpers.rb @@ -8,7 +8,7 @@ module API def set_http_headers(header_data) header_data.each do |key, value| if value.is_a?(Enumerable) - raise ArgumentError.new("Header value should be a string") + raise ArgumentError, "Header value should be a string" end header "X-Gitlab-#{key.to_s.split('_').collect(&:capitalize).join('-')}", value.to_s |
