diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-01 00:07:14 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-11-01 00:07:14 +0300 |
commit | 24fb09b2eb3f4703b09eef3c9bbf842cd055626a (patch) | |
tree | 3c1f69360a0ce9b15c97fb25efa4424d4ef5f334 /lib/gitlab/jira | |
parent | 1d21e1712158ee4e3cf8b71b45ead662529fc3f8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/jira')
-rw-r--r-- | lib/gitlab/jira/middleware.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/gitlab/jira/middleware.rb b/lib/gitlab/jira/middleware.rb deleted file mode 100644 index 8a74729da49..00000000000 --- a/lib/gitlab/jira/middleware.rb +++ /dev/null @@ -1,23 +0,0 @@ -# frozen_string_literal: true - -module Gitlab - module Jira - class Middleware - def self.jira_dvcs_connector?(env) - env['HTTP_USER_AGENT']&.downcase&.start_with?('jira dvcs connector') - end - - def initialize(app) - @app = app - end - - def call(env) - if self.class.jira_dvcs_connector?(env) - env['HTTP_AUTHORIZATION'] = env['HTTP_AUTHORIZATION']&.sub('token', 'Bearer') - end - - @app.call(env) - end - end - end -end |