Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-11-01 00:07:14 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-11-01 00:07:14 +0300
commit24fb09b2eb3f4703b09eef3c9bbf842cd055626a (patch)
tree3c1f69360a0ce9b15c97fb25efa4424d4ef5f334 /lib/gitlab/jira
parent1d21e1712158ee4e3cf8b71b45ead662529fc3f8 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/jira')
-rw-r--r--lib/gitlab/jira/middleware.rb23
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