summaryrefslogtreecommitdiff
path: root/app/helpers/components_helper.rb
blob: 8893209b3146f255e54a8e92a25e13b641570b31 (plain)
1
2
3
4
5
6
7
8
9
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