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:
Diffstat (limited to 'lib/api/helpers/sse_helpers.rb')
-rw-r--r--lib/api/helpers/sse_helpers.rb16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/api/helpers/sse_helpers.rb b/lib/api/helpers/sse_helpers.rb
deleted file mode 100644
index c354694f508..00000000000
--- a/lib/api/helpers/sse_helpers.rb
+++ /dev/null
@@ -1,16 +0,0 @@
-# frozen_string_literal: true
-
-module API
- module Helpers
- module SSEHelpers
- def request_from_sse?(project)
- return false if request.referer.blank?
-
- uri = URI.parse(request.referer)
- uri.path.starts_with?(::Gitlab::Routing.url_helpers.project_root_sse_path(project))
- rescue URI::InvalidURIError
- false
- end
- end
- end
-end