summaryrefslogtreecommitdiff
path: root/app/helpers/components_helper.rb
blob: d0ef86851adc461e8524f7dfd804cc14987faaf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

module ComponentsHelper
  def gitlab_workhorse_version
    if request.headers['Gitlab-Workhorse'].present?
      request.headers['Gitlab-Workhorse'].split('-').first
    else
      Gitlab::Workhorse.version
    end
  end
end