diff options
author | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-03-07 16:22:37 +0100 |
---|---|---|
committer | Kim "BKC" Carlbäcker <kim.carlbacker@gmail.com> | 2018-03-07 16:22:37 +0100 |
commit | d4bd245acb6340265211ec0d18e5967c64b8b8cb (patch) | |
tree | c0e4b53f5d2f1e036f9c5a177a35f38220aa8bfe | |
parent | 1ae7af1ef97f54302208f9c2dc15c77a1d7113a7 (diff) | |
download | gitlab-ce-d4bd245acb6340265211ec0d18e5967c64b8b8cb.tar.gz |
naming things
-rw-r--r-- | lib/gitlab/workhorse.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/workhorse.rb b/lib/gitlab/workhorse.rb index c309cb587e7..0b0d667d4fd 100644 --- a/lib/gitlab/workhorse.rb +++ b/lib/gitlab/workhorse.rb @@ -10,7 +10,7 @@ module Gitlab INTERNAL_API_CONTENT_TYPE = 'application/vnd.gitlab-workhorse+json'.freeze INTERNAL_API_REQUEST_HEADER = 'Gitlab-Workhorse-Api-Request'.freeze NOTIFICATION_CHANNEL = 'workhorse:notifications'.freeze - ALLOWED_ACTIONS = %w[git_receive_pack git_upload_pack info_refs].freeze + ALLOWED_GIT_HTTP_ACTIONS = %w[git_receive_pack git_upload_pack info_refs].freeze # Supposedly the effective key size for HMAC-SHA256 is 256 bits, i.e. 32 # bytes https://tools.ietf.org/html/rfc4868#section-2.6 @@ -18,7 +18,7 @@ module Gitlab class << self def git_http_ok(repository, is_wiki, user, action, show_all_refs: false) - raise "Unsupported action: #{action}" unless ALLOWED_ACTIONS.include?(action.to_s) + raise "Unsupported action: #{action}" unless ALLOWED_GIT_HTTP_ACTIONS.include?(action.to_s) project = repository.project repo_path = repository.path_to_repo |